Skip to content

Commit

Permalink
fix: redirect on confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
pasyukevich committed Nov 13, 2024
1 parent e182f00 commit 2ccbe73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/ReimbursementAccount/NonUSD/BankInfo/BankInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,18 @@ function BankInfo({onBackButtonPress, onSubmit}: BankInfoProps) {
};

const handleNextScreen = useCallback(() => {
if (screenIndex === 2) {
nextScreen();
return;
}

if (currency !== CONST.CURRENCY.AUD) {
goToTheLastStep();
return;
}

nextScreen();
}, [currency, goToTheLastStep, nextScreen]);
}, [currency, goToTheLastStep, nextScreen, screenIndex]);

return (
<InteractiveStepWrapper
Expand Down

0 comments on commit 2ccbe73

Please sign in to comment.