Skip to content

Commit

Permalink
Merge pull request #23098 from bernhardoj/fix/22128-wrong-report-name
Browse files Browse the repository at this point in the history
Fix report name on report footer is not dynamically updated
  • Loading branch information
MariaHCD authored Jul 19, 2023
2 parents 1580aa9 + e275195 commit 772b469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AvatarWithDisplayName.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 772b469

Please sign in to comment.