From 028c3ba92ba351fea4d67e0a38bfb6a1110993d5 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 9 Feb 2026 17:11:03 -0800 Subject: [PATCH] Fix badge showing on current page --- src/app/components/PrimaryNav.svelte | 12 ++---------- src/app/util/notifications.ts | 3 +-- 2 files changed, 3 insertions(+), 12 deletions(-) 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(() => {