Skip to content

Commit

Permalink
Merge pull request #5908 from Expensify/yuwen-settingsPage
Browse files Browse the repository at this point in the history
Make sure we go to settings page rather than card route when creating a new workspace
  • Loading branch information
yuwenmemon authored Oct 16, 2021
2 parents 00d2480 + 092a838 commit 7062f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function create(name = '', shouldAutomaticallyReroute = true) {
const policyID = lodashGet(res, 'policyID');
if (shouldAutomaticallyReroute) {
Navigation.dismissModal();
Navigation.navigate(policyID ? ROUTES.getWorkspaceCardRoute(policyID) : ROUTES.HOME);
Navigation.navigate(policyID ? ROUTES.getWorkspaceInitialRoute(policyID) : ROUTES.HOME);
}
return Promise.resolve(policyID);
});
Expand Down

0 comments on commit 7062f9a

Please sign in to comment.