From 2f5657097d18e2465787b4aa40be0f4fee43a11d Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:44:36 +0100 Subject: [PATCH] Fix: Save button loops between Rate and Track distance after refreshing Rate page --- .../workspace/reimburse/WorkspaceRateAndUnitPage/RatePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/reimburse/WorkspaceRateAndUnitPage/RatePage.tsx b/src/pages/workspace/reimburse/WorkspaceRateAndUnitPage/RatePage.tsx index 65be798f9520..9405f0d67140 100644 --- a/src/pages/workspace/reimburse/WorkspaceRateAndUnitPage/RatePage.tsx +++ b/src/pages/workspace/reimburse/WorkspaceRateAndUnitPage/RatePage.tsx @@ -46,7 +46,7 @@ function WorkspaceRatePage(props: WorkspaceRatePageProps) { const submit = (values: FormOnyxValues) => { const rate = values.rate; Policy.setRateForReimburseView((parseFloat(rate) * CONST.POLICY.CUSTOM_UNIT_RATE_BASE_OFFSET).toFixed(1)); - Navigation.navigate(ROUTES.WORKSPACE_RATE_AND_UNIT.getRoute(props.policy?.id ?? '')); + Navigation.goBack(ROUTES.WORKSPACE_RATE_AND_UNIT.getRoute(props.policy?.id ?? '')); }; const validate = (values: FormOnyxValues): FormInputErrors => {