diff --git a/src/components/subplebbit-stats/subplebbit-stats.tsx b/src/components/subplebbit-stats/subplebbit-stats.tsx index cba3f1f3..4895f167 100644 --- a/src/components/subplebbit-stats/subplebbit-stats.tsx +++ b/src/components/subplebbit-stats/subplebbit-stats.tsx @@ -15,7 +15,7 @@ const SubplebbitStats = () => { const subplebbit = useSubplebbit({ subplebbitAddress }); const { address, createdAt } = subplebbit || {}; - const stats = useSubplebbitStats({ subplebbitAddress: address }); + let stats = useSubplebbitStats({ subplebbitAddress: address }); const { hiddenStats, toggleVisibility } = useSubplebbitStatsVisibilityStore(); const isHidden = hiddenStats[address]; @@ -25,7 +25,7 @@ const SubplebbitStats = () => { const comment = useComment({ commentCid: params?.commentCid }); const { deleted, locked, removed } = comment || {}; - const hideStats = !stats.allPostCount || deleted || locked || removed || isInDescriptionView || isInRulesView; + const hideStats = deleted || locked || removed || isInDescriptionView || isInRulesView; const unixToMMDDYYYY = (timestamp: number) => { const date = new Date(timestamp * 1000); @@ -51,13 +51,13 @@ const SubplebbitStats = () => { }} /> {' / '} }} /> @@ -66,13 +66,13 @@ const SubplebbitStats = () => { }} /> {' / '} }} /> @@ -83,7 +83,7 @@ const SubplebbitStats = () => { {' / '} }} />