diff --git a/src/pages/TransactionReceiptPage.tsx b/src/pages/TransactionReceiptPage.tsx index 499212e6ae61..80bda8c0df1b 100644 --- a/src/pages/TransactionReceiptPage.tsx +++ b/src/pages/TransactionReceiptPage.tsx @@ -48,6 +48,7 @@ function TransactionReceipt({transaction, report, reportMetadata = {isLoadingIni const moneyRequestReportID = ReportUtils.isMoneyRequestReport(report) ? report?.reportID : report?.parentReportID; const isTrackExpenseReport = ReportUtils.isTrackExpenseReport(report); + // eslint-disable-next-line rulesdir/no-negated-variables const shouldShowNotFoundPage = isTrackExpenseReport ? !transaction : (moneyRequestReportID ?? '') !== transaction?.reportID; return (