Skip to content

Commit

Permalink
Merge pull request #4889 from Expensify/nikki-prevent-errorsAttemptCo…
Browse files Browse the repository at this point in the history
…unt-override

Prevent errorAttemptsCount from being wiped out by JSON.stringify
  • Loading branch information
Joel Bettner authored Aug 30, 2021
2 parents a3b2069 + 2ec759f commit ea3643e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/actions/BankAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ function setupWithdrawalAccount(data) {
: CONST.BANK_ACCOUNT.SETUP_TYPE.MANUAL;
}

// Convert the errorAttemptsCount to an object to prevent it from being wiped out by JSON.stringify
newACHData.errorAttemptsCount = {...newACHData.errorAttemptsCount};

nextStep = newACHData.currentStep;

// If we are setting up a Plaid account replace the accountNumber with the unmasked number
Expand Down

0 comments on commit ea3643e

Please sign in to comment.