The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(front): hide connection provider avatar when there is no logo (#25797)
martmull244b02fd88c8
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsxindex 45198766bbe..9d460b7ae98 100644--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx@@ -1,4 +1,5 @@import { styled } from '@linaria/react';+import { isNonEmptyString } from '@sniptt/guards';import { useLingui } from '@lingui/react/macro';import { useContext } from 'react';import { SettingsPath } from 'twenty-shared/types';@@ -68,11 +69,13 @@ export const SettingsApplicationConnectionsSection = ({title={provider.displayName}description={t`Manage connections used by this app to call ${provider.displayName}.`}adornment={- <Avatar- type="app"- avatarUrl={getAbsoluteImageUrl(provider.logoUrl)}- placeholder={provider.displayName}- />+ isNonEmptyString(provider.logoUrl) ? (+ <Avatar+ type="app"+ avatarUrl={getAbsoluteImageUrl(provider.logoUrl)}+ placeholder={provider.displayName}+ />+ ) : undefined}/>{isOAuth && !isClientCredentialsConfigured && (