fix(ui): reset password form submit checking for token

This commit is contained in:
Shekar Siri 2023-11-16 10:47:38 +01:00
parent 7bef36dbf8
commit 778de0c39e

View file

@ -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