From 7823854b4394ec31d1dd76aca98663deb31c0afd Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 21 Jul 2021 11:29:26 -0600 Subject: [PATCH 1/2] remove return --- src/libs/actions/BankAccounts.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libs/actions/BankAccounts.js b/src/libs/actions/BankAccounts.js index b8187d55a6e5..cf0cbd13d3e9 100644 --- a/src/libs/actions/BankAccounts.js +++ b/src/libs/actions/BankAccounts.js @@ -553,7 +553,6 @@ function validateBankAccount(bankAccountID, validateCode) { if (response.jsonCode === 200) { Growl.show('Bank Account successfully validated!', CONST.GROWL.SUCCESS, 3000); Navigation.dismissModal(); - return; } Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {loading: false, error: response.message}); From ccbf85371555190afe258e36123271cae1de09a1 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 21 Jul 2021 12:37:33 -0600 Subject: [PATCH 2/2] set loading false --- src/libs/actions/BankAccounts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/actions/BankAccounts.js b/src/libs/actions/BankAccounts.js index cf0cbd13d3e9..f3cab0079d6a 100644 --- a/src/libs/actions/BankAccounts.js +++ b/src/libs/actions/BankAccounts.js @@ -553,6 +553,8 @@ function validateBankAccount(bankAccountID, validateCode) { if (response.jsonCode === 200) { Growl.show('Bank Account successfully validated!', CONST.GROWL.SUCCESS, 3000); Navigation.dismissModal(); + Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {loading: false, error: ''}); + return; } Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {loading: false, error: response.message});