fix(typecheck): fix twoFactorRedirect typescript error

This commit is contained in:
Yash Kumar
2026-07-09 15:05:51 +05:30
parent 79baa24763
commit f23b5b9532
+1 -1
View File
@@ -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");