Skip to content

Commit

Permalink
Merge pull request Expensify#50597 from abzokhattab/fix-issue-new-car…
Browse files Browse the repository at this point in the history
…d-navigation

Fix: App returns to card feed selection page after issuing a card from member profile
  • Loading branch information
mountiny authored Oct 11, 2024
2 parents f83af86 + f60884a commit 096e25c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/workspace/members/WorkspaceMemberNewCardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,14 @@ function WorkspaceMemberNewCardPage({route, personalDetails}: WorkspaceMemberNew
return;
}
if (selectedFeed === CONST.EXPENSIFY_CARD.NAME) {
const activeRoute = Navigation.getActiveRoute();

Card.setIssueNewCardStepAndData({
step: CONST.EXPENSIFY_CARD.STEP.CARD_TYPE,
data: {
assigneeEmail: memberLogin,
},
isEditing: false,
});
Navigation.navigate(ROUTES.WORKSPACE_EXPENSIFY_CARD_ISSUE_NEW.getRoute(policyID, activeRoute));
Navigation.navigate(ROUTES.WORKSPACE_EXPENSIFY_CARD_ISSUE_NEW.getRoute(policyID, ROUTES.WORKSPACE_MEMBER_DETAILS.getRoute(policyID, accountID)));
} else {
CompanyCards.setAssignCardStepAndData({
currentStep: CONST.COMPANY_CARD.STEP.CARD,
Expand Down

0 comments on commit 096e25c

Please sign in to comment.