Skip to content

Commit 051e86d

Browse files
authored
Merge pull request #61756 from dmkt9/fix/61288
2 parents e7f78df + 24dd2eb commit 051e86d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/AvatarWithDisplayName.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ function AvatarWithDisplayName({
172172
{canBeMissing: true},
173173
);
174174
const [reportAttributes] = useOnyx(ONYXKEYS.DERIVED.REPORT_ATTRIBUTES, {selector: (attributes) => attributes?.reports, canBeMissing: false});
175-
const title = getReportName(report, undefined, undefined, undefined, invoiceReceiverPolicy, reportAttributes);
175+
const parentReportActionParam = report?.parentReportActionID ? parentReportActions?.[report.parentReportActionID] : undefined;
176+
const title = getReportName(report, undefined, parentReportActionParam, undefined, invoiceReceiverPolicy, reportAttributes);
176177
const subtitle = getChatRoomSubtitle(report, {isCreateExpenseFlow: true});
177178
const parentNavigationSubtitleData = getParentNavigationSubtitle(report);
178179
const isMoneyRequestOrReport = isMoneyRequestReport(report) || isMoneyRequest(report) || isTrackExpenseReport(report) || isInvoiceReport(report);

0 commit comments

Comments
 (0)