Skip to content

Commit f22451f

Browse files
committed
Code cleanup
1 parent 91e3998 commit f22451f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages-exp/auth-exp/src/core/user/account_info.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
import * as externs from '@firebase/auth-types-exp';
1919

2020
import {
21-
updateEmailPassword as apiUpdateEmailPassword,
22-
UpdateEmailPasswordRequest
21+
updateEmailPassword as apiUpdateEmailPassword, UpdateEmailPasswordRequest
2322
} from '../../api/account_management/email_and_password';
2423
import { updateProfile as apiUpdateProfile } from '../../api/account_management/profile';
2524
import { User } from '../../model/user';
@@ -49,7 +48,7 @@ export async function updateProfile(
4948

5049
// Update the password provider as well
5150
const passwordProvider = user.providerData.find(
52-
p => p.providerId === externs.ProviderId.PASSWORD
51+
({providerId}) => providerId === externs.ProviderId.PASSWORD
5352
);
5453
if (passwordProvider) {
5554
passwordProvider.displayName = user.displayName;

0 commit comments

Comments
 (0)