mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-20 20:16:43 +00:00
Fix notifications badge
This commit is contained in:
parent
d6fb438ea0
commit
a395652f12
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user