Skip to content

Commit

Permalink
Merge pull request #19950 from Pujan92/fix/19471
Browse files Browse the repository at this point in the history
Fix: Contact Method - Validation error message doesn't disappear upon requesting new magic code
  • Loading branch information
puneetlath authored Jun 2, 2023
2 parents 3c64a15 + c2bab99 commit 89b7112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/actions/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ function requestContactMethodValidateCode(contactMethod) {
validateCodeSent: false,
errorFields: {
validateCodeSent: null,
validateLogin: null,
},
pendingFields: {
validateCodeSent: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ function BaseValidateCodeForm(props) {
*/
const resendValidateCode = () => {
User.requestContactMethodValidateCode(props.contactMethod);
setValidateCode('');
inputValidateCodeRef.current.focus();
};

/**
Expand Down

0 comments on commit 89b7112

Please sign in to comment.