Fix badge showing on current page
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user