about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-17 13:17:08 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-17 13:17:08 -0600
commit859087f21d148d52d707b0057458e7dd2cbbea0a (patch)
tree84c0f56ed1023501c665c91a495970f24604865b /src
parentc6b137a15356f894ba555661184af4cea4d916a2 (diff)
downloadvoidsky-859087f21d148d52d707b0057458e7dd2cbbea0a.tar.zst
Fix loadLatest() on home feed
Diffstat (limited to 'src')
-rw-r--r--src/state/models/feed-view.ts2
-rw-r--r--src/view/shell/mobile/index.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts
index a746993cf..f2c4f1f45 100644
--- a/src/state/models/feed-view.ts
+++ b/src/state/models/feed-view.ts
@@ -405,7 +405,7 @@ export class FeedModel {
     const toPrepend = []
     for (const item of res.data.feed) {
       if (this.feed.find(item2 => item2.uri === item.uri)) {
-        return // stop here - we've hit a post we already have
+        break // stop here - we've hit a post we already have
       }
       toPrepend.unshift(item) // reverse the order
     }
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx
index de973bd98..8f9b13eea 100644
--- a/src/view/shell/mobile/index.tsx
+++ b/src/view/shell/mobile/index.tsx
@@ -115,7 +115,7 @@ const Btn = ({
           <Text style={styles.notificationCountLabel}>{notificationCount}</Text>
         </View>
       ) : undefined}
-      {tabCount > 1 ? (
+      {tabCount && tabCount > 1 ? (
         <View style={styles.tabCount}>
           <Text style={styles.tabCountLabel}>{tabCount}</Text>
         </View>