Skip to content

Commit

Permalink
Merge pull request #28197 from Expensify/tgolen-fix-invite
Browse files Browse the repository at this point in the history
Use correct route for workspace invite form
  • Loading branch information
cristipaval authored Sep 25, 2023
2 parents 4348c30 + a0f4af2 commit 62a5af7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/pages/ReimbursementAccount/BankAccountStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ function BankAccountStep(props) {
subStep = CONST.BANK_ACCOUNT.SETUP_TYPE.PLAID;
}
const plaidDesktopMessage = getPlaidDesktopMessage();
const bankAccountRoute = `${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}${ROUTES.getBankAccountRoute('new', props.policyID, ROUTES.getWorkspaceInitialRoute(props.policyID))}`;
const bankAccountRoute = `${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}${ROUTES.BANK_ACCOUNT_WITH_STEP_TO_OPEN.getRoute(
'new',
props.policyID,
ROUTES.WORKSPACE_INITIAL.getRoute(props.policyID),
)}`;

if (subStep === CONST.BANK_ACCOUNT.SETUP_TYPE.MANUAL) {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceMembersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function WorkspaceMembersPage(props) {
*/
const inviteUser = () => {
setSearchValue('');
Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(props.route.params.policyID));
Navigation.navigate(ROUTES.WORKSPACE_INVITE.getRoute(props.route.params.policyID));
};

/**
Expand Down

0 comments on commit 62a5af7

Please sign in to comment.