Skip to content

Commit

Permalink
show parent navigation for transaction thread in report details page
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed May 4, 2024
1 parent 28cff71 commit 7e34a64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
const isChatThread = useMemo(() => ReportUtils.isChatThread(report), [report]);
const isArchivedRoom = useMemo(() => ReportUtils.isArchivedRoom(report), [report]);
const isMoneyRequestReport = useMemo(() => ReportUtils.isMoneyRequestReport(report), [report]);
const isMoneyRequest = useMemo(() => ReportUtils.isMoneyRequest(report), [report]);
const isInvoiceReport = useMemo(() => ReportUtils.isInvoiceReport(report), [report]);
const canEditReportDescription = useMemo(() => ReportUtils.canEditReportDescription(report, policy), [report, policy]);
const shouldShowReportDescription = isChatRoom && (canEditReportDescription || report.description !== '');
Expand Down Expand Up @@ -334,7 +335,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
) : (
chatRoomSubtitleText
)}
{!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport) && (
{!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport || isMoneyRequest) && (
<ParentNavigationSubtitle
parentNavigationSubtitleData={parentNavigationSubtitleData}
parentReportID={report?.parentReportID}
Expand Down

0 comments on commit 7e34a64

Please sign in to comment.