From 53f8351c04142293f2ef7ef8f4ef238b605ff952 Mon Sep 17 00:00:00 2001 From: Maria D'Costa Date: Wed, 15 Feb 2023 12:55:50 +0400 Subject: [PATCH] Don't show the loading indicator if we're offline and restarted the bank account setup process --- src/pages/ReimbursementAccount/ReimbursementAccountPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/ReimbursementAccount/ReimbursementAccountPage.js b/src/pages/ReimbursementAccount/ReimbursementAccountPage.js index 4337292048bb..58511050b29e 100644 --- a/src/pages/ReimbursementAccount/ReimbursementAccountPage.js +++ b/src/pages/ReimbursementAccount/ReimbursementAccountPage.js @@ -248,7 +248,8 @@ class ReimbursementAccountPage extends React.Component { const achData = lodashGet(this.props.reimbursementAccount, 'achData', {}); const currentStep = achData.currentStep || CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT; - if (this.props.reimbursementAccount.isLoading) { + // Don't show the loading indicator if we're offline and restarted the bank account setup process + if (this.props.reimbursementAccount.isLoading && !(this.props.network.isOffline && currentStep === CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT)) { const isSubmittingVerificationsData = _.contains([ CONST.BANK_ACCOUNT.STEP.COMPANY, CONST.BANK_ACCOUNT.STEP.REQUESTOR,