fix feed state

This commit is contained in:
plebeius.eth
2023-07-13 15:58:04 +02:00
parent 3888801081
commit 7cffb6c3e6
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -602,7 +602,7 @@ const All = () => {
<Link to={`/p/all/catalog`}>Catalog</Link>
]
</div>
{feed ? (
{subplebbits.state === "succeeded" ? (
null
) : (
<div id="stats" style={{float: "right", marginTop: "5px"}}>
+1 -1
View File
@@ -444,7 +444,7 @@ const AllCatalog = () => {
<Link to={`/p/all`}>Return</Link>
</span>
</div>
{feed ? (
{subplebbits.state === "succeeded" ? (
null
) : (
<div id="stats" style={{float: "right", marginTop: "5px"}}>
+1 -1
View File
@@ -861,7 +861,7 @@ const Board = () => {
{subplebbit?.state === "failed" ? (
null
) : (
feed ? (
subplebbit?.state === "succeeded" ? (
<>
{subplebbit.rules ?
<>
+2 -2
View File
@@ -667,7 +667,7 @@ const Catalog = () => {
<Link to={`/p/${selectedAddress}`} onClick={()=> {window.scrollTo(0, 0)}}>Return</Link>
]
</div>
{feed ? (
{subplebbit.state === "succeeded" ? (
<>
<span className="subscribe-button-desktop">
[
@@ -701,7 +701,7 @@ const Catalog = () => {
{subplebbit?.state === "failed" ? (
null
) : (
feed ? (
subplebbit.state === "succeeded" ? (
<InfiniteScroll
pageStart={0}
loadMore={tryLoadMore}
+1 -1
View File
@@ -611,7 +611,7 @@ const Subscriptions = () => {
<Link to={`/p/subscriptions/catalog`}>Catalog</Link>
]
</div>
{feed ? (
{subplebbits.state === "succeeded" ? (
null
) : (
<div id="stats" style={{float: "right", marginTop: "5px"}}>
@@ -448,7 +448,7 @@ const SubscriptionsCatalog = () => {
<Link to={`/p/subscriptions`}>Return</Link>
</span>
</div>
{feed ? (
{subplebbits.state === "succeeded" ? (
null
) : (
<div id="stats" style={{float: "right", marginTop: "5px"}}>