Skip to content

Commit

Permalink
Merge pull request #50321 from nkdengineer/fix/50160
Browse files Browse the repository at this point in the history
fix: Closing the receipt image user lands in transaction thread
  • Loading branch information
mountiny authored Oct 8, 2024
2 parents 3c26cac + 4e5eec2 commit d65bc0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/TransactionReceiptPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
};

Expand Down

0 comments on commit d65bc0e

Please sign in to comment.