fix hasMore

This commit is contained in:
plebeius.eth
2023-07-08 09:11:37 +02:00
parent 04aeff48bd
commit 972f425f58
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2195,7 +2195,7 @@ const All = () => {
}}
endReached={tryLoadMore}
useWindowScroll={true}
components={{ Footer: hasMore && feed ? () => <PostLoader /> : null }}
components={{ Footer: hasMore && feed.length > 0 ? () => <PostLoader /> : null }}
/>
) : (
<PostLoader />
+1 -1
View File
@@ -2816,7 +2816,7 @@ const Board = () => {
}}
endReached={tryLoadMore}
useWindowScroll={true}
components={{ Footer: hasMore && feed ? () => <PostLoader /> : null }}
components={{ Footer: hasMore && feed.length > 0 ? () => <PostLoader /> : null }}
/>
</>
) : (<PostLoader />)
+1 -1
View File
@@ -2206,7 +2206,7 @@ const Subscriptions = () => {
}}
endReached={tryLoadMore}
useWindowScroll={true}
components={{ Footer: hasMore && feed ? () => <PostLoader /> : null }}
components={{ Footer: hasMore && feed.length > 0 ? () => <PostLoader /> : null }}
/>
)}
</div>