fix(ui): check for token before request

This commit is contained in:
Shekar Siri 2023-09-22 17:29:36 +02:00
parent 84ea141347
commit cb38718b5d

View file

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