diff --git a/src/components/blocks/VoteWidget.astro b/src/components/blocks/VoteWidget.astro index a3b99ad..66d387b 100644 --- a/src/components/blocks/VoteWidget.astro +++ b/src/components/blocks/VoteWidget.astro @@ -33,7 +33,7 @@ interface Props { const { skillId, tally, youVote, unavailable = false } = Astro.props; const total = (tally.original || 0) + (tally.improved || 0); -const share = (count) => (total ? Math.round((count / total) * 100) : 0); +const share = (count: number) => (total ? Math.round((count / total) * 100) : 0); --- {