Skip to content

Commit 1c3ac60

Browse files
authored
Merge pull request Expensify#80717 from callstack-internal/80487-followup
[No QA] use getpersonalDetailByEmail in getAccountIDsByLogins
2 parents c84f162 + ea004e8 commit 1c3ac60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/PersonalDetailsUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function getPersonalDetailByEmail(email: string): PersonalDetails | undefined {
153153
*/
154154
function getAccountIDsByLogins(logins: string[]): number[] {
155155
return logins.reduce<number[]>((foundAccountIDs, login) => {
156-
const currentDetail = emailToPersonalDetailsCache[login?.toLowerCase()];
156+
const currentDetail = getPersonalDetailByEmail(login);
157157
if (!currentDetail) {
158158
// generate an account ID because in this case the detail is probably new, so we don't have a real accountID yet
159159
foundAccountIDs.push(generateAccountID(login));

0 commit comments

Comments
 (0)