diff --git a/src/components/panels/notifications-panel.tsx b/src/components/panels/notifications-panel.tsx index 35b6992..2fa5522 100644 --- a/src/components/panels/notifications-panel.tsx +++ b/src/components/panels/notifications-panel.tsx @@ -48,8 +48,9 @@ export function NotificationsPanel() { useEffect(() => { if (recipient) { window.localStorage.setItem('mc.notifications.recipient', recipient) + fetchNotifications() } - }, [recipient]) + }, [recipient, fetchNotifications]) useSmartPoll(fetchNotifications, 30000, { enabled: !!recipient, pauseWhenSseConnected: true })