From 2ec759f10baca6548c0b8beedae6d4d3653c6bbf Mon Sep 17 00:00:00 2001 From: Nikki Wines Date: Fri, 27 Aug 2021 12:10:45 -0700 Subject: [PATCH] prevent errorAttemptsCount from being wiped out by JSON.stringify --- src/libs/actions/BankAccounts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/actions/BankAccounts.js b/src/libs/actions/BankAccounts.js index eaadd1e7a0d..66c35d91c4a 100644 --- a/src/libs/actions/BankAccounts.js +++ b/src/libs/actions/BankAccounts.js @@ -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