Skip to content

Commit

Permalink
Fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Dec 18, 2023
1 parent d63f975 commit 65dda0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/PersonalDetailsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function getFormattedAddress(privatePersonalDetails: OnyxTypes.PrivatePersonalDe
* @param personalDetail - details object
* @returns - The effective display name
*/
function getEffectiveDisplayName(personalDetail: PersonalDetails): string | undefined {
function getEffectiveDisplayName(personalDetail?: PersonalDetails): string | undefined {
if (personalDetail) {
return LocalePhoneNumber.formatPhoneNumber(personalDetail?.login ?? '') || personalDetail.displayName;
}
Expand Down

0 comments on commit 65dda0d

Please sign in to comment.