diff --git a/apps/dokploy/pages/index.tsx b/apps/dokploy/pages/index.tsx index bf3519a6f..901bc88ae 100644 --- a/apps/dokploy/pages/index.tsx +++ b/apps/dokploy/pages/index.tsx @@ -110,7 +110,7 @@ export default function Home({ IS_CLOUD, enforceSSO }: Props) { return; } - if (data?.twoFactorRedirect as boolean) { + if (data && 'twoFactorRedirect' in data && data.twoFactorRedirect) { setTwoFactorCode(""); setIsTwoFactor(true); toast.info("Please enter your 2FA code");