diff --git a/src/pages/TransactionReceiptPage.tsx b/src/pages/TransactionReceiptPage.tsx index 0d0ed7da9df6..fb4a85acd6c5 100644 --- a/src/pages/TransactionReceiptPage.tsx +++ b/src/pages/TransactionReceiptPage.tsx @@ -46,6 +46,9 @@ function TransactionReceipt({transaction, report, reportMetadata = {isLoadingIni }, []); const moneyRequestReportID = ReportUtils.isMoneyRequestReport(report) ? report?.reportID : report?.parentReportID; + const isTrackExpenseReport = ReportUtils.isTrackExpenseReport(report); + + const shouldShowNotFoundPage = !isTrackExpenseReport && (moneyRequestReportID ?? '') !== transaction?.reportID; return ( ); }