Skip to content

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

Prevent users from resetting more than once

Luke Vellab2d20a5fd2c5
diff --git a/components/poll/manage-poll.tsx b/components/poll/manage-poll.tsx
index 8f303cafe..642a2a415 100644
--- a/components/poll/manage-poll.tsx
+++ b/components/poll/manage-poll.tsx
@@ -244,7 +244,7 @@ const ManagePoll: React.VoidFunctionComponent<{
onClick={() => updatePollMutation({ closed: true })}
/>
)}
- {poll.legacy ? (
+ {poll.legacy && poll.options[0].value.indexOf("T") === -1 ? (
<DropdownItem
icon={Refresh}
label="Reset poll"