From 7cffb6c3e6ed4b3e03a45f47a28ee4d9295c3c3f Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 13 Jul 2023 15:58:04 +0200 Subject: [PATCH] fix feed state --- src/components/views/All.jsx | 2 +- src/components/views/AllCatalog.jsx | 2 +- src/components/views/Board.jsx | 2 +- src/components/views/Catalog.jsx | 4 ++-- src/components/views/Subscriptions.jsx | 2 +- src/components/views/SubscriptionsCatalog.jsx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/views/All.jsx b/src/components/views/All.jsx index d984ba16..1d8d542b 100755 --- a/src/components/views/All.jsx +++ b/src/components/views/All.jsx @@ -602,7 +602,7 @@ const All = () => { Catalog ] - {feed ? ( + {subplebbits.state === "succeeded" ? ( null ) : (
diff --git a/src/components/views/AllCatalog.jsx b/src/components/views/AllCatalog.jsx index f495bb91..9974bd4b 100755 --- a/src/components/views/AllCatalog.jsx +++ b/src/components/views/AllCatalog.jsx @@ -444,7 +444,7 @@ const AllCatalog = () => { Return
- {feed ? ( + {subplebbits.state === "succeeded" ? ( null ) : (
diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index 140e5b27..8461a496 100755 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -861,7 +861,7 @@ const Board = () => { {subplebbit?.state === "failed" ? ( null ) : ( - feed ? ( + subplebbit?.state === "succeeded" ? ( <> {subplebbit.rules ? <> diff --git a/src/components/views/Catalog.jsx b/src/components/views/Catalog.jsx index 6f23ceb9..f45ab3ca 100755 --- a/src/components/views/Catalog.jsx +++ b/src/components/views/Catalog.jsx @@ -667,7 +667,7 @@ const Catalog = () => { {window.scrollTo(0, 0)}}>Return ]
- {feed ? ( + {subplebbit.state === "succeeded" ? ( <> [ @@ -701,7 +701,7 @@ const Catalog = () => { {subplebbit?.state === "failed" ? ( null ) : ( - feed ? ( + subplebbit.state === "succeeded" ? ( { Catalog ] - {feed ? ( + {subplebbits.state === "succeeded" ? ( null ) : (
diff --git a/src/components/views/SubscriptionsCatalog.jsx b/src/components/views/SubscriptionsCatalog.jsx index ce487d2e..964140f8 100755 --- a/src/components/views/SubscriptionsCatalog.jsx +++ b/src/components/views/SubscriptionsCatalog.jsx @@ -448,7 +448,7 @@ const SubscriptionsCatalog = () => { Return
- {feed ? ( + {subplebbits.state === "succeeded" ? ( null ) : (