Skip to content

Commit

Permalink
prevent errorAttemptsCount from being wiped out by JSON.stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkiWines committed Aug 27, 2021
1 parent 1c88474 commit 2ec759f
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 @@ -644,6 +644,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 2ec759f

Please sign in to comment.