pl-fe: Use store from an action correctly

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-09 17:34:23 +02:00
parent 299fd52dc1
commit 34b52e5f9b

View file

@ -72,8 +72,8 @@ const fetchRelatedRelationships = (dispatch: AppDispatch, notifications: Array<B
};
const updateNotifications = (notification: BaseNotification) =>
(dispatch: AppDispatch, getState: () => RootState) => {
const selectedFilter = useSettingsStore().settings.notifications.quickFilter.active;
(dispatch: AppDispatch) => {
const selectedFilter = useSettingsStore.getState().settings.notifications.quickFilter.active;
const showInColumn = selectedFilter === 'all' ? true : (FILTER_TYPES[selectedFilter as FilterType] || [notification.type]).includes(notification.type);
if (notification.account) {