From e2751956f2b243bab0fffde0eb6546c27ab4cc07 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 18 Jul 2023 22:43:37 +0800 Subject: [PATCH] fix report name does not dynamically updated --- src/components/AvatarWithDisplayName.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AvatarWithDisplayName.js b/src/components/AvatarWithDisplayName.js index f63b51cacf99..318772b83e15 100644 --- a/src/components/AvatarWithDisplayName.js +++ b/src/components/AvatarWithDisplayName.js @@ -53,7 +53,7 @@ const defaultProps = { }; function AvatarWithDisplayName(props) { - const title = props.isAnonymous ? props.report.displayName : ReportUtils.getDisplayNameForParticipant(props.report.ownerAccountID, true); + const title = props.isAnonymous ? ReportUtils.getReportName(props.report) : ReportUtils.getDisplayNameForParticipant(props.report.ownerAccountID, true); const subtitle = ReportUtils.getChatRoomSubtitle(props.report); const parentNavigationSubtitle = ReportUtils.getParentNavigationSubtitle(props.report); const isExpenseReport = ReportUtils.isExpenseReport(props.report);