diff --git a/scatter/next-app/hooks/useInferredFeatures.ts b/scatter/next-app/hooks/useInferredFeatures.ts index 789584a..62d4b6c 100644 --- a/scatter/next-app/hooks/useInferredFeatures.ts +++ b/scatter/next-app/hooks/useInferredFeatures.ts @@ -7,7 +7,7 @@ const useInferredFeatures = (props: Result) => { const comment0 = comments[Object.keys(comments)[0]] const langs = config.translation?.languages || [] return { - dataHasVotes: comment0.hasOwnProperty('agrees'), + dataHasVotes: comment0 && comment0.hasOwnProperty('agrees'), hasTranslations: langs.length > 0, } }, [])