about summary refs log tree commit diff
path: root/src/view/com/posts/Feed.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-12-13 12:17:14 -0800
committerGitHub <noreply@github.com>2023-12-13 12:17:14 -0800
commit8245e567473601b76ef20545d748810074439458 (patch)
tree7f80531280c782eb916cd5239ae7d2ee7483e903 /src/view/com/posts/Feed.tsx
parente3ba014be00f545b3dbd39b5dcfc198a69c790d4 (diff)
downloadvoidsky-8245e567473601b76ef20545d748810074439458.tar.zst
Feed bugfixes (#2204)
* Dont show both an error and empty message in the feed

* Add a sanity check when attempting to fill the first 30
Diffstat (limited to 'src/view/com/posts/Feed.tsx')
-rw-r--r--src/view/com/posts/Feed.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/view/com/posts/Feed.tsx b/src/view/com/posts/Feed.tsx
index c4f859e04..24a7f5b42 100644
--- a/src/view/com/posts/Feed.tsx
+++ b/src/view/com/posts/Feed.tsx
@@ -167,8 +167,7 @@ let Feed = ({
     if (isFetched) {
       if (isError && isEmpty) {
         arr = arr.concat([ERROR_ITEM])
-      }
-      if (isEmpty) {
+      } else if (isEmpty) {
         arr = arr.concat([EMPTY_FEED_ITEM])
       } else if (data) {
         for (const page of data?.pages) {