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

(cherry picked from commit 7062f9a)
  • Loading branch information
yuwenmemon authored and OSBotify committed Oct 16, 2021
1 parent d4113f6 commit ec877c0
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 ec877c0

Please sign in to comment.