diff --git a/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx b/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx index 11b9db674..e1309f12b 100644 --- a/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx +++ b/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx @@ -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 })