diff --git a/src/store/gui/notifications/getters.ts b/src/store/gui/notifications/getters.ts index 6bd197bed..ccde3ea86 100644 --- a/src/store/gui/notifications/getters.ts +++ b/src/store/gui/notifications/getters.ts @@ -436,7 +436,17 @@ export const getters: GetterTree = { } }) - return notifications + // get all dismissed tmcwarnings and convert it to a string[] + const tmcwarningsDismisses = getters['getDismissByCategory']('tmcwarning').map( + (dismiss: GuiNotificationStateDismissEntry) => { + return `tmcwarning/${dismiss.id}` + } + ) + + // return filtered tmcwarnings + return notifications.filter((entry) => { + return !tmcwarningsDismisses.includes(entry.id) + }) }, getDismiss: (state, getters, rootState) => {