diff --git a/pkg/grid/src/nav/Notifications.tsx b/pkg/grid/src/nav/Notifications.tsx index e1d6c47d2..104d0f662 100644 --- a/pkg/grid/src/nav/Notifications.tsx +++ b/pkg/grid/src/nav/Notifications.tsx @@ -48,8 +48,6 @@ export const Notifications = () => { getMore(); }, []); - console.log(unreads); - return (
diff --git a/pkg/grid/src/nav/NotificationsLink.tsx b/pkg/grid/src/nav/NotificationsLink.tsx index 5591dfac3..894c318a2 100644 --- a/pkg/grid/src/nav/NotificationsLink.tsx +++ b/pkg/grid/src/nav/NotificationsLink.tsx @@ -25,8 +25,8 @@ type NotificationsLinkProps = Omit, 'to'> & { }; export const NotificationsLink = ({ isOpen }: NotificationsLinkProps) => { - const { unreads, systemNotifications } = useNotifications(); - const state = getNotificationsState(unreads, systemNotifications); + const { unreads } = useNotifications(); + const state = getNotificationsState(unreads); return ( { + u.more.forEach((upd: any) => { reduceHark(upd); }); } else if ('all-stats' in u) { @@ -91,5 +91,3 @@ api.subscribe({ }); } }); - -window.hark = useHarkStore.getState;