diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index c8e7c6ff..bced205f 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -308,7 +308,7 @@ export const FullArticle = (props: Props) => { onMount(() => { console.debug(props.article) - setPages((_) => ({comments: 0, rating: 0})) + setPages((_) => ({ comments: 0, rating: 0 })) addSeen(props.article.slug) document.title = props.article.title updateIframeSizes() diff --git a/src/routes/topic/[slug].tsx b/src/routes/topic/[slug].tsx index 00b2d1bb..35ffb375 100644 --- a/src/routes/topic/[slug].tsx +++ b/src/routes/topic/[slug].tsx @@ -28,7 +28,9 @@ export const route = { export default (props: RouteSectionProps<{ articles: Shout[] }>) => { const params = useParams() - const articles = createAsync(async () => props.data.articles || (await fetchTopicShouts(params.slug)) || []) + const articles = createAsync( + async () => props.data.articles || (await fetchTopicShouts(params.slug)) || [] + ) const { topicEntities } = useTopics() const { t } = useLocalize() const topic = createMemo(() => topicEntities?.()[params.slug])