diff --git a/src/app/components/PrimaryNav.svelte b/src/app/components/PrimaryNav.svelte index 58b203d4..7d3ff21f 100644 --- a/src/app/components/PrimaryNav.svelte +++ b/src/app/components/PrimaryNav.svelte @@ -1,6 +1,5 @@ diff --git a/src/app/util/notifications.ts b/src/app/util/notifications.ts index 8c2eda11..618b3de5 100644 --- a/src/app/util/notifications.ts +++ b/src/app/util/notifications.ts @@ -25,7 +25,6 @@ import { spec, first, identity, - remove, now, maybe, throttle, @@ -182,7 +181,7 @@ export const allNotifications = derived( ) export const notifications = derived([page, allNotifications], ([$page, $allNotifications]) => { - return new Set(remove($page.url.pathname, [...$allNotifications])) + return new Set([...$allNotifications].filter(p => $page.url.pathname.startsWith(p))) }) export const onNotification = call(() => {