Skip to content

Commit

Permalink
Merge pull request #56868 from software-mansion-labs/fix/go-back-iou-…
Browse files Browse the repository at this point in the history
…category

[Navigation] Track expense-RHP reopens after changing category on confirm page & clicking back button twice

(cherry picked from commit f8b5e6c)

(CP triggered by Julesssss)
  • Loading branch information
Julesssss authored and OSBotify committed Feb 14, 2025
1 parent 25c9251 commit 3b663c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/request/step/IOURequestStepCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function IOURequestStepCategory({

setMoneyRequestCategory(transactionID, updatedCategory, policy?.id);

if (action === CONST.IOU.ACTION.CATEGORIZE) {
if (action === CONST.IOU.ACTION.CATEGORIZE && !backTo) {
if (report?.reportID) {
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CONFIRMATION.getRoute(action, iouType, transactionID, report.reportID));
}
Expand Down

0 comments on commit 3b663c0

Please sign in to comment.