Skip to content

Commit

Permalink
Merge pull request #15161 from Expensify/maria-offline-bank-account-r…
Browse files Browse the repository at this point in the history
…eset

[Offline] Restarting workspace bank account setup should show the BankAccountStep
  • Loading branch information
Julesssss authored Mar 7, 2023
2 parents 71a119f + 53f8351 commit 9b190e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b190e8

Please sign in to comment.