Fix no-show logic

This commit is contained in:
Eric Bailey
2024-12-17 13:15:15 -06:00
parent eda3c35155
commit 90ed779cc3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export function Inner() {
const trendingPrompt = Prompt.usePromptControl()
const {setTrendingDiscoverHidden} = useTrendingSettingsApi()
const {data: trending, error, isLoading} = useTrendingTopics()
const noTopics = !isLoading && !error && !trending?.topics
const noTopics = !isLoading && !error && !trending?.topics?.length
return error || noTopics ? null : (
<View
@@ -26,7 +26,7 @@ function Inner() {
const t = useTheme()
const gutters = useGutters([0, 'compact'])
const {data: trending, error, isLoading} = useTrendingTopics()
const noTopics = !isLoading && !error && !trending?.topics
const noTopics = !isLoading && !error && !trending?.topics?.length
return error || noTopics ? null : (
<>
@@ -36,7 +36,7 @@ function Inner() {
const trendingPrompt = Prompt.usePromptControl()
const {setTrendingSidebarHidden} = useTrendingSettingsApi()
const {data: trending, error, isLoading} = useTrendingTopics()
const noTopics = !isLoading && !error && !trending?.topics
const noTopics = !isLoading && !error && !trending?.topics?.length
return error || noTopics ? null : (
<>