Prevent users from resetting more than once

This commit is contained in:
Luke Vella 2022-04-12 15:51:34 +01:00
parent 9cd3f72883
commit b2d20a5fd2

View file

@ -244,7 +244,7 @@ const ManagePoll: React.VoidFunctionComponent<{
onClick={() => updatePollMutation({ closed: true })} onClick={() => updatePollMutation({ closed: true })}
/> />
)} )}
{poll.legacy ? ( {poll.legacy && poll.options[0].value.indexOf("T") === -1 ? (
<DropdownItem <DropdownItem
icon={Refresh} icon={Refresh}
label="Reset poll" label="Reset poll"