fix(ui): check for token before request
This commit is contained in:
parent
84ea141347
commit
cb38718b5d
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ function ResetPasswordRequest(props: Props) {
|
|||
};
|
||||
|
||||
const handleSubmit = (token?: any) => {
|
||||
if (token === null || token === undefined) return;
|
||||
|
||||
setError(null);
|
||||
props
|
||||
.requestResetPassword({ email: email.trim(), 'g-recaptcha-response': token })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue