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 654c527 commit cb3cb55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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.status === 'pending' || !precheckResponse.sso_enforcement ? (
{!precheckResponse.sso_enforcement && (
<LemonButton
type="primary"
status="alt"
Expand All @@ -155,8 +155,10 @@ export function Login(): JSX.Element {
>
Log in
</LemonButton>
) : (
// Show enforced SSO button if required
)}

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

Expand Down

0 comments on commit cb3cb55

Please sign in to comment.