Skip to content

Commit d65bc0e

Browse files
authoredOct 8, 2024··
Merge pull request #50321 from nkdengineer/fix/50160
fix: Closing the receipt image user lands in transaction thread
2 parents 3c26cac + 4e5eec2 commit d65bc0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/pages/TransactionReceiptPage.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ function TransactionReceipt({route}: TransactionReceiptProps) {
5151
if (secondToLastRoute?.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR) {
5252
Navigation.dismissModal();
5353
} else {
54-
Navigation.dismissModal(report?.reportID ?? '-1');
54+
Navigation.dismissModal(
55+
ReportUtils.isOneTransactionThread(report?.reportID ?? '-1', report?.parentReportID ?? '-1', parentReportAction) ? report?.parentReportID : report?.reportID,
56+
);
5557
}
5658
};
5759

0 commit comments

Comments
 (0)
Please sign in to comment.