Skip to content

Commit

Permalink
Merge pull request #22564 from bernhardoj/fix/22083
Browse files Browse the repository at this point in the history
Don't change loading state on resend magic code
  • Loading branch information
grgia authored Jul 13, 2023
2 parents 9e5d4ee + 8703f17 commit 9b205fb
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions src/libs/actions/Session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}

/**
Expand Down

0 comments on commit 9b205fb

Please sign in to comment.