Skip to content

Commit

Permalink
Fix minutes to have correct words when zero votes
Browse files Browse the repository at this point in the history
  • Loading branch information
ApsiV11 committed Dec 5, 2024
1 parent 9cc774e commit 856dbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/components/shared/ElectionResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ElectionResults = ({
a.name.localeCompare(b.name)
)

const firstParagraph = `Ääniä annettiin ${totalVotes} ${totalVotes > 1 ? 'kappaletta' : 'kappale'}, joista ${emptyVotes} oli ${emptyVotes > 1 ? 'tyhjiä' : 'tyhjä'}. Äänestystulos oli vaalikelpoinen.`
const firstParagraph = `Ääniä annettiin ${totalVotes} ${totalVotes !== 1 ? 'kappaletta' : 'kappale'}, joista ${emptyVotes} oli ${emptyVotes !== 1 ? 'tyhjiä' : 'tyhjä'}. Äänestystulos oli vaalikelpoinen.`
const firstDecimalVotesRound = votingResult.roundResults.find(
({ candidateResults }) => {
return candidateResults.some(({ voteCount }) => voteCount % 1 !== 0)
Expand Down

0 comments on commit 856dbf9

Please sign in to comment.