diff --git a/src/components/poll/desktop-poll.tsx b/src/components/poll/desktop-poll.tsx index ca6e851ce..9834d879e 100644 --- a/src/components/poll/desktop-poll.tsx +++ b/src/components/poll/desktop-poll.tsx @@ -27,8 +27,7 @@ const minSidebarWidth = 200; const Poll: React.VoidFunctionComponent = () => { const { t } = useTranslation("app"); - const { poll, options, userAlreadyVoted, targetTimeZone, setTargetTimeZone } = - usePoll(); + const { poll, options, targetTimeZone, setTargetTimeZone } = usePoll(); const { participants } = useParticipants(); @@ -66,7 +65,7 @@ const Poll: React.VoidFunctionComponent = () => { const maxScrollPosition = columnWidth * options.length - columnWidth * numberOfVisibleColumns; - const shouldShowNewParticipantForm = !userAlreadyVoted && !poll.closed; + const shouldShowNewParticipantForm = !poll.closed; const pollWidth = sidebarWidth + options.length * columnWidth + actionColumnWidth; diff --git a/src/components/poll/mobile-poll.tsx b/src/components/poll/mobile-poll.tsx index 45a2fe3a0..f9ad63b40 100644 --- a/src/components/poll/mobile-poll.tsx +++ b/src/components/poll/mobile-poll.tsx @@ -255,7 +255,7 @@ const MobilePoll: React.VoidFunctionComponent = () => { }} /> - ) : !userAlreadyVoted ? ( + ) : ( - ) : null} + )} {timeZone ? (