Closed PouriaSterling closed 4 years ago
Hmmm I thought I made the button disabled while the API request was in progress. Seems like that didn't work
Yeah seems not.
I can even abuse this to vote 4 times (not more than 4 though)
And when I'm at -1 vote remaining, I can still cast more votes which all return 400 You have already voted the maximum number of times (3)
Only the last vote cast displays as voted for when multiple votes are cast quickly, however refreshing the page correctly shows all of those people as voted for.
Could either fix it so it correctly shows all 3 even if voting is done quickly, or alternatively disable voting while an existing vote is being processed.