Skip to content

Commit

Permalink
Merge pull request #35 from takahiroanno2024/fix
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
nishio authored Dec 23, 2024
2 parents 036ec29 + 728c5b3 commit a2a5aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scatter/next-app/hooks/useInferredFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}, [])
Expand Down

0 comments on commit a2a5aa2

Please sign in to comment.