fix(ui): reset password form submit checking for token
This commit is contained in:
parent
7bef36dbf8
commit
778de0c39e
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ function ResetPasswordRequest(props: Props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSubmit = (token?: any) => {
|
const handleSubmit = (token?: any) => {
|
||||||
if (token === null || token === undefined) return;
|
if (CAPTCHA_ENABLED && recaptchaRef.current && (token === null || token === undefined)) return;
|
||||||
|
|
||||||
setError(null);
|
setError(null);
|
||||||
props
|
props
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue