diff --git a/frontend/src/components/App/Notifications/Notifications.tsx b/frontend/src/components/App/Notifications/Notifications.tsx index 6f0782bf0d9..0364ad7529c 100644 --- a/frontend/src/components/App/Notifications/Notifications.tsx +++ b/frontend/src/components/App/Notifications/Notifications.tsx @@ -213,8 +213,7 @@ export default function Notifications() { // we are here means the events list changed and we have now new set of events, so we will notify the store about it dispatch(setNotifications(notificationsToShow.concat(currentNotifications))); } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [warnings, notifications]); + }, [warnings, notifications, dispatch]); const [areAllNotificationsInDeleteState, areThereUnseenNotifications, filteredNotifications] = useMemo(() => {