Skip to content

Commit

Permalink
Update Login.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield committed Oct 30, 2024
1 parent b1a6a13 commit 654c527
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/src/scenes/authentication/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function Login(): JSX.Element {
</div>

{/* Show regular login button if SSO is not enforced */}
{!precheckResponse.sso_enforcement && (
{precheckResponse.status === 'pending' || !precheckResponse.sso_enforcement ? (
<LemonButton
type="primary"
status="alt"
Expand All @@ -155,10 +155,8 @@ export function Login(): JSX.Element {
>
Log in
</LemonButton>
)}

{/* Show enforced SSO button if required */}
{precheckResponse.sso_enforcement && (
) : (
// Show enforced SSO button if required
<SSOEnforcedLoginButton provider={precheckResponse.sso_enforcement} email={login.email} />
)}

Expand Down

0 comments on commit 654c527

Please sign in to comment.