Skip to content

Commit f23b5b9

Browse files
committed
fix(typecheck): fix twoFactorRedirect typescript error
1 parent 79baa24 commit f23b5b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/dokploy/pages/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default function Home({ IS_CLOUD, enforceSSO }: Props) {
110110
return;
111111
}
112112

113-
if (data?.twoFactorRedirect as boolean) {
113+
if (data && 'twoFactorRedirect' in data && data.twoFactorRedirect) {
114114
setTwoFactorCode("");
115115
setIsTwoFactor(true);
116116
toast.info("Please enter your 2FA code");

0 commit comments

Comments
 (0)