diff --git a/src/components/poll.jsx b/src/components/poll.jsx
index c53b209b..c051c217 100644
--- a/src/components/poll.jsx
+++ b/src/components/poll.jsx
@@ -87,54 +87,67 @@ export default function Poll({
}}
>
{(showResults && optionsHaveVoteCounts) || voted || expired ? (
-
- {options.map((option, i) => {
- const { title, votesCount: optionVotesCount } = option;
- const percentage = pollVotesCount
- ? ((optionVotesCount / pollVotesCount) * 100).toFixed(
- roundPrecision,
- )
- : 0; // check if current poll choice is the leading one
+ <>
+
+ {options.map((option, i) => {
+ const { title, votesCount: optionVotesCount } = option;
+ const percentage = pollVotesCount
+ ? ((optionVotesCount / pollVotesCount) * 100).toFixed(
+ roundPrecision,
+ )
+ : 0; // check if current poll choice is the leading one
- const isLeading =
- optionVotesCount > 0 &&
- optionVotesCount ===
- Math.max(...options.map((o) => o.votesCount));
- return (
-
-
-
- {voted && ownVotes.includes(i) && (
- <>
- {' '}
-
- >
- )}
-
+ const isLeading =
+ optionVotesCount > 0 &&
+ optionVotesCount ===
+ Math.max(...options.map((o) => o.votesCount));
+ return (
- {percentage}%
+
+
+ {voted && ownVotes.includes(i) && (
+ <>
+ {' '}
+
+ >
+ )}
+
+
+ {percentage}%
+
-
- );
- })}
-
+ );
+ })}
+
+ {!expired && !voted && (
+