From 3b663c064c1aded2f5e1eabe5a788fcccd3ff9b8 Mon Sep 17 00:00:00 2001 From: Jules Date: Fri, 14 Feb 2025 09:56:18 -0800 Subject: [PATCH] Merge pull request #56868 from software-mansion-labs/fix/go-back-iou-category [Navigation] Track expense-RHP reopens after changing category on confirm page & clicking back button twice (cherry picked from commit f8b5e6c3aac3f1ad35abf2205837d5f7ca619f10) (CP triggered by Julesssss) --- src/pages/iou/request/step/IOURequestStepCategory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/request/step/IOURequestStepCategory.tsx b/src/pages/iou/request/step/IOURequestStepCategory.tsx index 59454cea3ce8..fb56c3e422b6 100644 --- a/src/pages/iou/request/step/IOURequestStepCategory.tsx +++ b/src/pages/iou/request/step/IOURequestStepCategory.tsx @@ -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)); }