mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-31 17:56:21 +02:00
Allow adding multiple participants (#220)
This commit is contained in:
parent
a1d86dbb4b
commit
68ef2e3cec
2 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue