From 29c025af4860455e82d713188a6595480972478d Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Thu, 8 Jun 2023 00:25:58 +0500 Subject: [PATCH] fix: render error before continue bank account setup button --- .../ReimbursementAccountPage.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pages/ReimbursementAccount/ReimbursementAccountPage.js b/src/pages/ReimbursementAccount/ReimbursementAccountPage.js index a7cf6f4d4a1b..7e18a7edbdc2 100644 --- a/src/pages/ReimbursementAccount/ReimbursementAccountPage.js +++ b/src/pages/ReimbursementAccount/ReimbursementAccountPage.js @@ -343,16 +343,6 @@ class ReimbursementAccountPage extends React.Component { ); } - if (this.state.shouldShowContinueSetupButton) { - return ( - - ); - } - let errorComponent; const userHasPhonePrimaryEmail = Str.endsWith(this.props.session.email, CONST.SMS.DOMAIN); @@ -386,6 +376,16 @@ class ReimbursementAccountPage extends React.Component { ); } + if (this.state.shouldShowContinueSetupButton) { + return ( + + ); + } + if (currentStep === CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT) { return (