Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Do not show 'No notification channels' banner if Telegram is not set up, but there is at least one other integration

Blue Mouse7df44b4e26fc
diff --git a/app/pages/Project/Alerts/View/ProjectAlertsView.tsx b/app/pages/Project/Alerts/View/ProjectAlertsView.tsx
index a7459b806..adb7fe96b 100644
--- a/app/pages/Project/Alerts/View/ProjectAlertsView.tsx
+++ b/app/pages/Project/Alerts/View/ProjectAlertsView.tsx
@@ -214,7 +214,13 @@ const ProjectAlerts = ({ projectId }: IProjectAlerts): JSX.Element => {
}, [t])
const isIntegrationLinked = useMemo(() => {
- return !_isEmpty(user) && user.telegramChatId && user.isTelegramChatIdConfirmed
+ if (_isEmpty(user)) {
+ return false
+ }
+
+ return Boolean(
+ (user.telegramChatId && user.isTelegramChatIdConfirmed) || user.slackWebhookUrl || user.discordWebhookUrl,
+ )
}, [user])
const handleNewAlert = () => {