Skip to content

Commit

Permalink
DESENG-513: Votes text update
Browse files Browse the repository at this point in the history
  • Loading branch information
ratheesh-aot committed Mar 19, 2024
1 parent c43b770 commit dcfac42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function PollOption({ label, votes, percentage }: PollOptionProps) {
<Typography variant="subtitle1">{`${percentage}%`}</Typography>
</Box>
<Typography variant="caption" sx={{ display: 'block', mt: 1 }}>
{votes} votes
{votes > 1 ? `${votes} votes` : `${votes} vote`}
</Typography>
<Divider />
</Box>
Expand Down

0 comments on commit dcfac42

Please sign in to comment.