From f23b5b9532f52c7ed5f528c9ac69713a3c55bcba Mon Sep 17 00:00:00 2001 From: Yash Kumar Date: Thu, 9 Jul 2026 15:05:51 +0530 Subject: [PATCH] fix(typecheck): fix twoFactorRedirect typescript error --- apps/dokploy/pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");