pl-fe: fix duplicated notifications

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-09-09 11:33:02 +02:00
parent 95be38fde3
commit 374bef6141
4 changed files with 15 additions and 16 deletions

View File

@ -30,7 +30,7 @@ const messages = defineMessages({
const getNotifications = createSelector([
(state: RootState) => state.notifications.items.toList(),
], (notifications) => notifications.filter(item => item !== null));
], (notifications) => notifications.filter(item => item !== null && !item.duplicate));
const Notifications = () => {
const dispatch = useAppDispatch();