diff --git a/apps/web/src/components/poll/desktop-poll.tsx b/apps/web/src/components/poll/desktop-poll.tsx index 411f94d92..b36e17994 100644 --- a/apps/web/src/components/poll/desktop-poll.tsx +++ b/apps/web/src/components/poll/desktop-poll.tsx @@ -29,7 +29,10 @@ import { useVotingForm } from "@/components/poll/voting-form"; import { usePermissions } from "@/contexts/permissions"; import { usePoll } from "@/contexts/poll"; -import { useVisibleParticipants } from "../participants-provider"; +import { + useParticipants, + useVisibleParticipants, +} from "../participants-provider"; import ParticipantRow from "./desktop-poll/participant-row"; import ParticipantRowForm from "./desktop-poll/participant-row-form"; import PollHeader from "./desktop-poll/poll-header"; @@ -99,6 +102,7 @@ const DesktopPoll: React.FunctionComponent = () => { const votingForm = useVotingForm(); const mode = votingForm.watch("mode"); + const { participants } = useParticipants(); const visibleParticipants = useVisibleParticipants(); const scrollRef = React.useRef(null); @@ -228,7 +232,7 @@ const DesktopPoll: React.FunctionComponent = () => { - {visibleParticipants.length} + {participants.length} {canAddNewParticipant && mode !== "new" ? (