File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages-exp/auth-exp/src/core/user Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 18
18
import * as externs from '@firebase/auth-types-exp' ;
19
19
20
20
import {
21
- updateEmailPassword as apiUpdateEmailPassword ,
22
- UpdateEmailPasswordRequest
21
+ updateEmailPassword as apiUpdateEmailPassword , UpdateEmailPasswordRequest
23
22
} from '../../api/account_management/email_and_password' ;
24
23
import { updateProfile as apiUpdateProfile } from '../../api/account_management/profile' ;
25
24
import { User } from '../../model/user' ;
@@ -49,7 +48,7 @@ export async function updateProfile(
49
48
50
49
// Update the password provider as well
51
50
const passwordProvider = user . providerData . find (
52
- p => p . providerId === externs . ProviderId . PASSWORD
51
+ ( { providerId } ) => providerId === externs . ProviderId . PASSWORD
53
52
) ;
54
53
if ( passwordProvider ) {
55
54
passwordProvider . displayName = user . displayName ;
You can’t perform that action at this time.
0 commit comments