about summary refs log tree commit diff
path: root/src/state/models/feeds/notifications.ts
diff options
context:
space:
mode:
authorAnsh Nanda <anshnanda10@gmail.com>2023-05-25 00:18:00 -0700
committerAnsh Nanda <anshnanda10@gmail.com>2023-05-25 00:18:00 -0700
commit524f8b6abd1787e3fefc640e752e2ed1ecac5898 (patch)
treed12bcfcef4d26ac6f12f7e2aea8766ac14c148d7 /src/state/models/feeds/notifications.ts
parent0bdb0ac006a63604f23e73330cb7d6365bb36b4b (diff)
parent93e9fa8edfe1d8a046399a2b4b31bba4d69814f8 (diff)
downloadvoidsky-524f8b6abd1787e3fefc640e752e2ed1ecac5898.tar.zst
Merge branch 'custom-algos' of https://github.com/bluesky-social/social-app into custom-algos
Diffstat (limited to 'src/state/models/feeds/notifications.ts')
-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 {