From 2ccbe7363adb16b879d3a6781b7359878be43088 Mon Sep 17 00:00:00 2001 From: Yauheni Pasiukevich Date: Wed, 13 Nov 2024 11:51:36 +0100 Subject: [PATCH] fix: redirect on confirm --- .../ReimbursementAccount/NonUSD/BankInfo/BankInfo.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/ReimbursementAccount/NonUSD/BankInfo/BankInfo.tsx b/src/pages/ReimbursementAccount/NonUSD/BankInfo/BankInfo.tsx index 2088f05be19b..7c5d853428c5 100644 --- a/src/pages/ReimbursementAccount/NonUSD/BankInfo/BankInfo.tsx +++ b/src/pages/ReimbursementAccount/NonUSD/BankInfo/BankInfo.tsx @@ -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 (