Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OlimpiaZurek committed Jul 22, 2024
1 parent f29352c commit 1bb4618
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ function getPersonalDetailsForAccountID(accountID: number): Partial<PersonalDeta

const hiddenTranslation = Localize.translateLocal('common.hidden');

const phoneNumberCache: {[key: string]: string} = {};
const phoneNumberCache: Record<string, string> = {};

/**
* Get the displayName for a single report participant.
Expand All @@ -1876,11 +1876,11 @@ function getDisplayNameForParticipant(accountID?: number, shouldUseShortForm = f
}

// Check if the phone number is already cached
let formattedLogin = phoneNumberCache[personalDetails.login || ''];
let formattedLogin = phoneNumberCache[personalDetails.login ?? ''];
if (!formattedLogin) {
formattedLogin = LocalePhoneNumber.formatPhoneNumber(personalDetails.login || '');
formattedLogin = LocalePhoneNumber.formatPhoneNumber(personalDetails.login ?? '');
// Store the formatted phone number in the cache
phoneNumberCache[personalDetails.login || ''] = formattedLogin;
phoneNumberCache[personalDetails.login ?? ''] = formattedLogin;
}

// This is to check if account is an invite/optimistically created one
Expand Down

0 comments on commit 1bb4618

Please sign in to comment.