Skip to content

Commit

Permalink
Fix going back from card provider in Company cards
Browse files Browse the repository at this point in the history
  • Loading branch information
narefyev91 committed Dec 4, 2024
1 parent 1462048 commit 65950fe
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 65950fe

Please sign in to comment.