Skip to content

Commit

Permalink
Merge pull request #53557 from callstack-internal/fix-go-back-from-ca…
Browse files Browse the repository at this point in the history
…rd-provider

Fix going back from card provider in Company cards
  • Loading branch information
mountiny authored Dec 5, 2024
2 parents 9184118 + 65950fe commit b384924
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/workspace/companyCards/addNew/CardTypeStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ function CardTypeStep() {
}, [addNewCard?.data.feedType]);

const handleBackButtonPress = () => {
CompanyCards.setAddNewCompanyCardStepAndData({step: CONST.COMPANY_CARDS.STEP.SELECT_BANK});
if (isOtherBankSelected) {
CompanyCards.setAddNewCompanyCardStepAndData({step: CONST.COMPANY_CARDS.STEP.SELECT_BANK});
return;
}
CompanyCards.setAddNewCompanyCardStepAndData({step: CONST.COMPANY_CARDS.STEP.SELECT_FEED_TYPE});
};

return (
Expand Down

0 comments on commit b384924

Please sign in to comment.