fix loading state of empty feed

This commit is contained in:
plebeius.eth
2023-07-06 13:14:20 +02:00
parent 02ce0a5474
commit 87fcc80898
6 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -585,7 +585,7 @@ const All = () => {
<Link to={`/p/all/catalog`}>Catalog</Link>
]
</div>
{feed.length > 0 ? (
{feed ? (
null
) : (
<div id="stats" style={{float: "right", marginTop: "5px"}}>
@@ -601,7 +601,7 @@ const All = () => {
<Tooltip id="tooltip" className="tooltip" />
<BoardForm selectedStyle={selectedStyle}>
<div className="board">
{feed.length > 0 ? (
{feed ? (
<Virtuoso
increaseViewportBy={2000}
data={selectedFeed}
@@ -2068,7 +2068,7 @@ const All = () => {
}}
endReached={tryLoadMore}
useWindowScroll={true}
components={{ Footer: hasMore ? () => <PostLoader /> : null }}
components={{ Footer: hasMore && feed ? () => <PostLoader /> : null }}
/>
) : (
<PostLoader />