From 654c527295c2ad5800b8c82e25ef7709650101bf Mon Sep 17 00:00:00 2001 From: Zach Waterfield Date: Wed, 30 Oct 2024 17:31:37 -0400 Subject: [PATCH] Update Login.tsx --- frontend/src/scenes/authentication/Login.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/scenes/authentication/Login.tsx b/frontend/src/scenes/authentication/Login.tsx index c4dbd8f139cd9..768825b1b76b9 100644 --- a/frontend/src/scenes/authentication/Login.tsx +++ b/frontend/src/scenes/authentication/Login.tsx @@ -142,7 +142,7 @@ export function Login(): JSX.Element { {/* Show regular login button if SSO is not enforced */} - {!precheckResponse.sso_enforcement && ( + {precheckResponse.status === 'pending' || !precheckResponse.sso_enforcement ? ( Log in - )} - - {/* Show enforced SSO button if required */} - {precheckResponse.sso_enforcement && ( + ) : ( + // Show enforced SSO button if required )}