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
  • Loading branch information
Julesssss authored Feb 14, 2025
2 parents d5d5472 + 85631a7 commit f8b5e6c
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 f8b5e6c

Please sign in to comment.