diff --git a/src/libs/IOUUtils.ts b/src/libs/IOUUtils.ts index 04d6f7baebf2c..7a3cfc99be989 100644 --- a/src/libs/IOUUtils.ts +++ b/src/libs/IOUUtils.ts @@ -38,6 +38,9 @@ function navigateToStartMoneyRequestStep(requestType: IOURequestType, iouType: I case CONST.IOU.REQUEST_TYPE.SCAN: Navigation.goBack(ROUTES.MONEY_REQUEST_CREATE_TAB_SCAN.getRoute(CONST.IOU.ACTION.CREATE, iouType, transactionID, reportID), {compareParams: false}); break; + case CONST.IOU.REQUEST_TYPE.TIME: + Navigation.goBack(ROUTES.MONEY_REQUEST_CREATE_TAB_TIME.getRoute(CONST.IOU.ACTION.CREATE, iouType, transactionID, reportID), {compareParams: false}); + break; default: Navigation.goBack(ROUTES.MONEY_REQUEST_CREATE_TAB_MANUAL.getRoute(CONST.IOU.ACTION.CREATE, iouType, transactionID, reportID), {compareParams: false}); break; diff --git a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx index 5e4be0eba26c9..84144405a8233 100644 --- a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx +++ b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx @@ -434,9 +434,6 @@ function IOURequestStepConfirmation({ Navigation.goBack(ROUTES.MONEY_REQUEST_STEP_SUBRATE.getRoute(action, iouType, initialTransactionID, reportID)); return; } - if (isTimeRequest) { - return Navigation.goBack(ROUTES.MONEY_REQUEST_CREATE_TAB_TIME.getRoute(action, iouType, initialTransactionID, reportID)); - } if (transaction?.isFromGlobalCreate && !transaction.receipt?.isTestReceipt) { // If the participants weren't automatically added to the transaction, then we should go back to the IOURequestStepParticipants. @@ -478,7 +475,6 @@ function IOURequestStepConfirmation({ isMovingTransactionFromTrackExpense, participantsAutoAssignedFromRoute, backTo, - isTimeRequest, ]); // When the component mounts, if there is a receipt, see if the image can be read from the disk. If not, redirect the user to the starting step of the flow.