Fix badge showing on current page

This commit is contained in:
Jon Staab
2026-02-09 17:11:03 -08:00
parent f80aba33f1
commit 028c3ba92b
2 changed files with 3 additions and 12 deletions
+1 -2
View File
@@ -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(() => {