From 4e5eec28e7b9067c8b9b5a77895bbf1d1a6ecb3b Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Mon, 7 Oct 2024 10:27:49 +0700 Subject: [PATCH] fix: Closing the receipt image user lands in transaction thread --- src/pages/TransactionReceiptPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/TransactionReceiptPage.tsx b/src/pages/TransactionReceiptPage.tsx index d51f39b6c630..194759f78ccb 100644 --- a/src/pages/TransactionReceiptPage.tsx +++ b/src/pages/TransactionReceiptPage.tsx @@ -51,7 +51,9 @@ function TransactionReceipt({route}: TransactionReceiptProps) { if (secondToLastRoute?.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR) { Navigation.dismissModal(); } else { - Navigation.dismissModal(report?.reportID ?? '-1'); + Navigation.dismissModal( + ReportUtils.isOneTransactionThread(report?.reportID ?? '-1', report?.parentReportID ?? '-1', parentReportAction) ? report?.parentReportID : report?.reportID, + ); } };