Fix notifications badge

This commit is contained in:
Jonathan Staab 2023-03-08 16:24:27 -06:00
parent d6fb438ea0
commit a395652f12

View File

@ -25,7 +25,7 @@ export const lastChecked = synced('app/alerts/lastChecked', {})
export const newAlerts = derived(
[database.watch('alerts', t => pluck('created_at', t.all()).reduce(max, 0)), lastChecked],
([$lastAlert, $lastChecked]) => $lastAlert > $lastChecked.alerts
([$lastAlert, $lastChecked]) => $lastAlert > ($lastChecked.alerts || 0)
)
export const newDirectMessages = derived(