From d8b413616b73b61f9b7af37e46de77effb9a3da7 Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Mon, 12 Feb 2024 14:40:09 +0200 Subject: [PATCH 1/2] Revert but this will get re-added after --- src/pages/iou/request/step/IOURequestStepDescription.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/iou/request/step/IOURequestStepDescription.js b/src/pages/iou/request/step/IOURequestStepDescription.js index f3324a311732..348b5e16a378 100644 --- a/src/pages/iou/request/step/IOURequestStepDescription.js +++ b/src/pages/iou/request/step/IOURequestStepDescription.js @@ -20,6 +20,7 @@ import updateMultilineInputRange from '@libs/updateMultilineInputRange'; import * as IOU from '@userActions/IOU'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; +import ROUTES from '@src/ROUTES'; import {policyPropTypes} from '@src/pages/workspace/withPolicy'; import IOURequestStepRoutePropTypes from './IOURequestStepRoutePropTypes'; import StepScreenWrapper from './StepScreenWrapper'; @@ -108,7 +109,7 @@ function IOURequestStepDescription({ }, []); const navigateBack = () => { - Navigation.goBack(backTo); + Navigation.goBack(backTo || ROUTES.HOME); }; /** From 2f4ac02ee6845f81719a5c4f730d8a668670f997 Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Mon, 12 Feb 2024 14:49:09 +0200 Subject: [PATCH 2/2] Fix lint --- src/pages/iou/request/step/IOURequestStepDescription.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/request/step/IOURequestStepDescription.js b/src/pages/iou/request/step/IOURequestStepDescription.js index 348b5e16a378..1cfa0a117cdd 100644 --- a/src/pages/iou/request/step/IOURequestStepDescription.js +++ b/src/pages/iou/request/step/IOURequestStepDescription.js @@ -20,8 +20,8 @@ import updateMultilineInputRange from '@libs/updateMultilineInputRange'; import * as IOU from '@userActions/IOU'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; -import ROUTES from '@src/ROUTES'; import {policyPropTypes} from '@src/pages/workspace/withPolicy'; +import ROUTES from '@src/ROUTES'; import IOURequestStepRoutePropTypes from './IOURequestStepRoutePropTypes'; import StepScreenWrapper from './StepScreenWrapper'; import withFullTransactionOrNotFound from './withFullTransactionOrNotFound';