Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

Collapse option when showing votes (#480)

Luke Vella0c8522c5ae7a
diff --git a/src/components/poll/mobile-poll/poll-option.tsx b/src/components/poll/mobile-poll/poll-option.tsx
index d646039f3..c0cb38dfc 100644
--- a/src/components/poll/mobile-poll/poll-option.tsx
+++ b/src/components/poll/mobile-poll/poll-option.tsx
@@ -257,7 +257,7 @@ const PollOption: React.VoidFunctionComponent<PollOptionProps> = ({
</CollapsibleContainer>
</div>
<AnimatePresence initial={false}>
- {expanded && !editable ? (
+ {expanded && !showVotes ? (
<PollOptionVoteSummary optionId={optionId} />
) : null}
</AnimatePresence>