From 05b53a25dcf96a5b1ef1cfa0967495c662814ec2 Mon Sep 17 00:00:00 2001 From: Marcin Swornowski Date: Tue, 12 Mar 2024 16:39:51 +0100 Subject: [PATCH] fix: added hideBankAccountErrors to handleBackButtonPress in BankInfo --- src/pages/ReimbursementAccount/BankInfo/BankInfo.tsx | 1 + src/pages/ReimbursementAccount/ReimbursementAccountPage.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/ReimbursementAccount/BankInfo/BankInfo.tsx b/src/pages/ReimbursementAccount/BankInfo/BankInfo.tsx index ed00fbcff422..d1092293031b 100644 --- a/src/pages/ReimbursementAccount/BankInfo/BankInfo.tsx +++ b/src/pages/ReimbursementAccount/BankInfo/BankInfo.tsx @@ -124,6 +124,7 @@ function BankInfo({reimbursementAccount, reimbursementAccountDraft, plaidLinkTok [BANK_INFO_STEP_KEYS.PLAID_ACCESS_TOKEN]: '', }; ReimbursementAccountUtils.updateReimbursementAccountDraft(bankAccountData); + ReimbursementAccountUtils.hideBankAccountErrors(); BankAccounts.setBankAccountSubStep(null); } } else { diff --git a/src/pages/ReimbursementAccount/ReimbursementAccountPage.js b/src/pages/ReimbursementAccount/ReimbursementAccountPage.js index 9855090e70d1..3145525daa52 100644 --- a/src/pages/ReimbursementAccount/ReimbursementAccountPage.js +++ b/src/pages/ReimbursementAccount/ReimbursementAccountPage.js @@ -484,9 +484,7 @@ function ReimbursementAccountPage({reimbursementAccount, route, onfidoToken, pol reimbursementAccount={reimbursementAccount} continue={continueFunction} policyName={policyName} - onBackButtonPress={() => { - Navigation.goBack(); - }} + onBackButtonPress={Navigation.goBack} /> ); }