Skip to content

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

🐛 Prevent form submission when poll is locked

Luke Vellae96c31b9c94b
diff --git a/src/components/poll/desktop-poll.tsx b/src/components/poll/desktop-poll.tsx
index 3c5092662..a8a8a006f 100644
--- a/src/components/poll/desktop-poll.tsx
+++ b/src/components/poll/desktop-poll.tsx
@@ -246,7 +246,8 @@ const Poll: React.VoidFunctionComponent = () => {
})}
</div>
<AnimatePresence initial={false}>
- {shouldShowNewParticipantForm || editingParticipantId ? (
+ {!poll.closed &&
+ (shouldShowNewParticipantForm || editingParticipantId) ? (
<m.div
variants={{
hidden: { height: 0, y: 30, opacity: 0 },