fix: show captcha when turnstile is enabled only
This commit is contained in:
parent
ba3cbe0724
commit
111568d746
@ -230,10 +230,12 @@ export const RegisterForm = ({
|
||||
</div>
|
||||
<FormError message={error} />
|
||||
<FormSuccess message={success} />
|
||||
{turnstileEnabled && (
|
||||
<Captcha
|
||||
onSuccess={(token) => form.setValue('captchaToken', token)}
|
||||
validationError={form.formState.errors.captchaToken?.message}
|
||||
/>
|
||||
)}
|
||||
<Button
|
||||
disabled={isPending || (turnstileEnabled && !captchaToken)}
|
||||
size="lg"
|
||||
|
Loading…
Reference in New Issue
Block a user