This commit is contained in:
Max Peintner
2024-11-11 10:35:01 +01:00
parent 427384e858
commit 771befced7

View File

@@ -173,10 +173,7 @@ export function RegisterFormWithoutPassword({
variant={ButtonVariants.Primary}
disabled={loading || !formState.isValid || !tosAndPolicyAccepted}
onClick={handleSubmit((values) =>
submitAndContinue(
values,
selected.name === methods[0].name ? false : true,
),
submitAndContinue(values, !(selected.name === methods[0].name)),
)}
>
{loading && <Spinner className="h-5 w-5 mr-2" />}