about summary refs log tree commit diff
path: root/src/state/models
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-05-25 01:30:48 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-05-25 01:30:48 -0500
commite89103915db48fc4306b553877be1ffa8ef94e91 (patch)
treea9a0b15d3e25d4d0302ff3cf961436ce91bdd5a8 /src/state/models
parent6f02548bca0ea918d9caec3e71068032ff119a75 (diff)
downloadvoidsky-e89103915db48fc4306b553877be1ffa8ef94e91.tar.zst
Update load latest to show when there's new activity with an indicator
Diffstat (limited to 'src/state/models')
-rw-r--r--src/state/models/feeds/notifications.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/state/models/feeds/notifications.ts b/src/state/models/feeds/notifications.ts
index 73424f03e..3777abb92 100644
--- a/src/state/models/feeds/notifications.ts
+++ b/src/state/models/feeds/notifications.ts
@@ -290,7 +290,9 @@ export class NotificationsFeedModel {
   }
 
   get hasNewLatest() {
-    return this.queuedNotifications && this.queuedNotifications?.length > 0
+    return Boolean(
+      this.queuedNotifications && this.queuedNotifications?.length > 0,
+    )
   }
 
   get unreadCountLabel(): string {