File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
packages/clerk-js/src/ui/components/UserProfile Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @clerk/clerk-js ' : patch
3+ ---
4+
5+ Fix broken enterprise connection icon for custom SAML provider
Original file line number Diff line number Diff line change 1- import { iconImageUrl } from '@clerk/shared/constants' ;
21import { useUser } from '@clerk/shared/react' ;
32import type { EnterpriseAccountResource , OAuthProvider } from '@clerk/types' ;
43
@@ -83,7 +82,6 @@ const EnterpriseAccount = ({ account }: { account: EnterpriseAccountResource })
8382const EnterpriseAccountProviderIcon = ( { account } : { account : EnterpriseAccountResource } ) => {
8483 const { provider, enterpriseConnection } = account ;
8584
86- const isCustomOAuthProvider = provider . startsWith ( 'oauth_custom_' ) ;
8785 const providerWithoutPrefix = provider . replace ( / ( o a u t h _ | s a m l _ ) / , '' ) . trim ( ) as OAuthProvider ;
8886 const connectionName = enterpriseConnection ?. name ?? providerWithoutPrefix ;
8987
@@ -94,15 +92,6 @@ const EnterpriseAccountProviderIcon = ({ account }: { account: EnterpriseAccount
9492 elementId : descriptors . enterpriseButtonsProviderIcon . setId ( account . provider ) ,
9593 } ;
9694
97- if ( ! isCustomOAuthProvider ) {
98- return (
99- < Image
100- { ...commonImageProps }
101- src = { iconImageUrl ( providerWithoutPrefix ) }
102- />
103- ) ;
104- }
105-
10695 return enterpriseConnection ?. logoPublicUrl ? (
10796 < Image
10897 { ...commonImageProps }
You can’t perform that action at this time.
0 commit comments