From f0dae5e478f71761ff36649711ec5e530933d1b5 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Wed, 29 Oct 2025 20:49:47 +0100 Subject: [PATCH] Style Signed-off-by: Bryan Frimin --- apps/console/src/pages/auth/LoginPage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/console/src/pages/auth/LoginPage.tsx b/apps/console/src/pages/auth/LoginPage.tsx index f9d7e138c..8c96bd5dd 100644 --- a/apps/console/src/pages/auth/LoginPage.tsx +++ b/apps/console/src/pages/auth/LoginPage.tsx @@ -11,7 +11,12 @@ export default function LoginPage() { const [searchParams] = useSearchParams(); const authMethod = searchParams.get("method"); - const initialMode = authMethod === "password" ? "password" : authMethod === "sso" ? "sso" : "default"; + let initialMode: "default" | "password" | "sso" = "default"; + if (authMethod === "password") { + initialMode = "password"; + } else if (authMethod === "sso") { + initialMode = "sso"; + } const [mode, setMode] = useState<"default" | "password" | "sso">(initialMode); const [isLoading, setIsLoading] = useState(false);