Skip to content

Commit

Permalink
Fallback to connector id if display name isn't set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Oct 28, 2024
1 parent 205fc8f commit ab7a2a8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ export default function AuthnDialog({ mfa, onCancel }: Props) {
>
<SSOIcon
type={guessProviderType(
mfa.ssoChallenge.device.displayName,
mfa.ssoChallenge.device.displayName ||
mfa.ssoChallenge.device.connectorId,
mfa.ssoChallenge.device.connectorType
)}
/>
{mfa.ssoChallenge.device.displayName}
{mfa.ssoChallenge.device.displayName ||
mfa.ssoChallenge.device.connectorId}
</ButtonSecondary>
)}
{mfa.webauthnPublicKey && (
Expand Down

0 comments on commit ab7a2a8

Please sign in to comment.