diff --git a/src/components/status.jsx b/src/components/status.jsx index 0d2db25..213d199 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -287,8 +287,9 @@ function Poll({ poll }) { {voted || expired ? ( options.map((option, i) => { const { title, votesCount: optionVotesCount } = option; + const pollVotesCount = votersCount || votesCount; const percentage = - Math.round((optionVotesCount / votesCount) * 100) || 0; + Math.round((optionVotesCount / pollVotesCount) * 100) || 0; return (