From 0f07e1eedeb3ea9f23657739a410755ea71a07c0 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Tue, 16 Apr 2024 10:58:20 +0200 Subject: [PATCH] fix(board): don't show description and rules until feed loads --- src/views/board/board.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/board/board.tsx b/src/views/board/board.tsx index aa5233b5..0e2fc32d 100644 --- a/src/views/board/board.tsx +++ b/src/views/board/board.tsx @@ -12,7 +12,7 @@ import SubplebbitRules from '../../components/subplebbit-rules'; const lastVirtuosoStates: { [key: string]: StateSnapshot } = {}; -const Subplebbit = () => { +const Board = () => { const { t } = useTranslation(); const { subplebbitAddress } = useParams<{ subplebbitAddress: string }>(); const subplebbitAddresses = useMemo(() => [subplebbitAddress], [subplebbitAddress]) as string[]; @@ -58,7 +58,7 @@ const Subplebbit = () => { return (
- {createdAt && ( + {feed.length > 0 && ( <> {rules && rules.length > 0 && } {description && description.length > 0 && ( @@ -82,4 +82,4 @@ const Subplebbit = () => { ); }; -export default Subplebbit; +export default Board;