mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix(onboarding): step-login — add next to useEffect deps, default emailPasswordEnabled to false
This commit is contained in:
@@ -34,7 +34,7 @@ export const StepLogin = () => {
|
||||
const { data: session } = useSession();
|
||||
|
||||
const passkeyEnabled = meta?.passkeyEnabled ?? false;
|
||||
const emailPasswordEnabled = meta?.emailPasswordEnabled ?? true;
|
||||
const emailPasswordEnabled = meta?.emailPasswordEnabled ?? false;
|
||||
const hasAnySsoProvider = (meta?.ssoProviders?.length ?? 0) > 0;
|
||||
const hasAnyAuthMethod = emailPasswordEnabled || passkeyEnabled || hasAnySsoProvider;
|
||||
|
||||
@@ -43,7 +43,7 @@ export const StepLogin = () => {
|
||||
if (session?.user) {
|
||||
next();
|
||||
}
|
||||
}, [session?.user?.id]);
|
||||
}, [session?.user?.id, next]);
|
||||
|
||||
const form = useZodForm({ schema: LoginSchema });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user