From b9ee13c904fd30db49d1035a08a1a47567c313b1 Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Mon, 29 Apr 2024 23:07:16 +0530 Subject: [PATCH] Merge pull request #41219 from Expensify/monil-fixCrash [CP Staging] Fix crash when navigating to new public room (cherry picked from commit 4db1763aaee64328f21440a19d85193f84f3c68c) --- src/libs/SidebarUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index 4f1a35ee1d87..d5c937fe0270 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -412,7 +412,7 @@ function getOptionData({ result.subtitle = subtitle; result.participantsList = participantPersonalDetailList; - result.icons = ReportUtils.getIcons(report, personalDetails, UserUtils.getAvatar(personalDetail?.avatar ?? {}, personalDetail?.accountID), '', -1, policy); + result.icons = ReportUtils.getIcons(report, personalDetails, UserUtils.getAvatar(personalDetail?.avatar ?? '', personalDetail?.accountID), '', -1, policy); result.searchText = OptionsListUtils.getSearchText(report, reportName, participantPersonalDetailList, result.isChatRoom || result.isPolicyExpenseChat, result.isThread); result.displayNamesWithTooltips = displayNamesWithTooltips;