From d2dfec69846f4f4fc856a4f39c8f55a7cb1fa490 Mon Sep 17 00:00:00 2001 From: Bartosz Grajdek Date: Mon, 18 Dec 2023 11:45:50 +0100 Subject: [PATCH] fix: unit test --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 0041cdabae6d..fce158c309b8 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -1463,7 +1463,7 @@ function getDisplayNamesWithTooltips( const displayName = getDisplayNameForParticipant(accountID, isMultipleParticipantReport, shouldFallbackToHidden) || user?.login || ''; const avatar = UserUtils.getDefaultAvatar(accountID); - let pronouns = user?.pronouns ?? ''; + let pronouns = user?.pronouns ?? undefined; if (pronouns?.startsWith(CONST.PRONOUNS.PREFIX)) { const pronounTranslationKey = pronouns.replace(CONST.PRONOUNS.PREFIX, ''); pronouns = Localize.translateLocal(`pronouns.${pronounTranslationKey}` as TranslationPaths);