Skip to content

Commit

Permalink
fix: remove the setValidateCode call while resending the magic code
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Oct 5, 2023
1 parent a71508d commit 060bf6d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ function BaseValidateCodeForm(props) {
if (!props.hasMagicCodeBeenSent) {
return;
}
setValidateCode('');
inputValidateCodeRef.current.clear();
}, [props.hasMagicCodeBeenSent]);

Expand All @@ -111,7 +110,6 @@ function BaseValidateCodeForm(props) {
const resendValidateCode = () => {
User.requestContactMethodValidateCode(props.contactMethod);
inputValidateCodeRef.current.clear();
setValidateCode('');
};

/**
Expand Down
1 change: 0 additions & 1 deletion src/pages/signin/ValidateCodeForm/BaseValidateCodeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ function BaseValidateCodeForm(props) {
const resendValidateCode = () => {
User.resendValidateCode(props.credentials.login);
inputValidateCodeRef.current.clear();
setValidateCode('');
// Give feedback to the user to let them know the email was sent so that they don't spam the button.
setTimeRemaining(30);
};
Expand Down

0 comments on commit 060bf6d

Please sign in to comment.