mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-03 11:11:48 +02:00
Prevent users from resetting more than once
This commit is contained in:
parent
9cd3f72883
commit
b2d20a5fd2
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue