about summary refs log tree commit diff
path: root/src/view/shell/Drawer.tsx
diff options
context:
space:
mode:
authorOllie H <renahlee@outlook.com>2023-05-17 09:37:54 -0700
committerGitHub <noreply@github.com>2023-05-17 09:37:54 -0700
commit0ca096138a690f036828c49f9e95cf394b1a4339 (patch)
tree2f31fb4a2c86ee12feae7f449a67a28aeae47e34 /src/view/shell/Drawer.tsx
parent562faa76cce6e935295f30359cbd7180b912cec1 (diff)
parentd6ca8e918af213959791bec3e9daf976c65c1be1 (diff)
downloadvoidsky-0ca096138a690f036828c49f9e95cf394b1a4339.tar.zst
Merge pull request #692 from bluesky-social/ollie/unread-notifications
Update hint for notifications
Diffstat (limited to 'src/view/shell/Drawer.tsx')
-rw-r--r--src/view/shell/Drawer.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx
index d595bc524..2ecdbaab2 100644
--- a/src/view/shell/Drawer.tsx
+++ b/src/view/shell/Drawer.tsx
@@ -222,7 +222,11 @@ export const DrawerContent = observer(() => {
             }
             label="Notifications"
             accessibilityLabel="Notifications"
-            accessibilityHint={`${store.me.notifications.unreadCountLabel} unread`}
+            accessibilityHint={
+              notifications.unreadCountLabel === ''
+                ? ''
+                : `${notifications.unreadCountLabel} unread`
+            }
             count={notifications.unreadCountLabel}
             bold={isAtNotifications}
             onPress={onPressNotifications}