Skip to content

Commit

Permalink
fix going back route
Browse files Browse the repository at this point in the history
  • Loading branch information
staszekscp committed Dec 19, 2023
1 parent 21fd969 commit ac68bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/WorkspaceNamePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function WorkspaceNamePage({policy}) {

Policy.updateGeneralSettings(policy.id, values.name.trim(), policy.outputCurrency);
Keyboard.dismiss();
Navigation.goBack(ROUTES.WORKSPACE_INITIAL.getRoute(policy.id));
Navigation.goBack(ROUTES.WORKSPACE_OVERVIEW.getRoute(policy.id));
},
[policy.id, policy.isPolicyUpdating, policy.outputCurrency],
);
Expand Down Expand Up @@ -71,7 +71,7 @@ function WorkspaceNamePage({policy}) {
>
<HeaderWithBackButton
title={translate('workspace.editor.nameInputLabel')}
onBackButtonPress={Navigation.goBack}
onBackButtonPress={() => Navigation.goBack(ROUTES.WORKSPACE_OVERVIEW.getRoute(policy.id))}
/>
<FormProvider
formID={ONYXKEYS.FORMS.WORKSPACE_SETTINGS_FORM}
Expand Down

0 comments on commit ac68bbd

Please sign in to comment.