From 8703f17768bc48b00442c0e85599cf9e51ecef6d Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 11 Jul 2023 00:04:01 +0800 Subject: [PATCH] don't change loading state on resend magic code --- src/libs/actions/Session/index.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/libs/actions/Session/index.js b/src/libs/actions/Session/index.js index b1671cc46f7d..b94648c04f13 100644 --- a/src/libs/actions/Session/index.js +++ b/src/libs/actions/Session/index.js @@ -170,33 +170,11 @@ function resendValidateCode(login = credentials.login) { onyxMethod: Onyx.METHOD.MERGE, key: ONYXKEYS.ACCOUNT, value: { - isLoading: true, errors: null, - loadingForm: CONST.FORMS.VALIDATE_CODE_FORM, - }, - }, - ]; - const successData = [ - { - onyxMethod: Onyx.METHOD.MERGE, - key: ONYXKEYS.ACCOUNT, - value: { - isLoading: false, - loadingForm: null, - }, - }, - ]; - const failureData = [ - { - onyxMethod: Onyx.METHOD.MERGE, - key: ONYXKEYS.ACCOUNT, - value: { - isLoading: false, - loadingForm: null, }, }, ]; - API.write('RequestNewValidateCode', {email: login}, {optimisticData, successData, failureData}); + API.write('RequestNewValidateCode', {email: login}, {optimisticData}); } /**