diff --git a/apps/web/src/components/poll/mobile-poll/poll-option.tsx b/apps/web/src/components/poll/mobile-poll/poll-option.tsx index 3bc1947dd..00eb8f55a 100644 --- a/apps/web/src/components/poll/mobile-poll/poll-option.tsx +++ b/apps/web/src/components/poll/mobile-poll/poll-option.tsx @@ -11,6 +11,7 @@ import { useTranslation } from "@/app/i18n/client"; import { useParticipants } from "@/components/participants-provider"; import { UserAvatar } from "@/components/user"; import { usePoll } from "@/contexts/poll"; +import { useRole } from "@/contexts/role"; import { ConnectedScoreSummary } from "../score-summary"; import VoteIcon from "../vote-icon"; @@ -105,6 +106,7 @@ const PollOption: React.FunctionComponent = ({ }) => { const poll = usePoll(); const showVotes = !!(selectedParticipantId || editable); + const role = useRole(); const selectorRef = React.useRef(null); const [active, setActive] = React.useState(false); const [isExpanded, toggle] = useToggle(false); @@ -123,8 +125,8 @@ const PollOption: React.FunctionComponent = ({ >
{children}
-
- {poll.hideParticipants ? ( +
+ {role === "participant" && poll.hideParticipants ? ( ) : (