Disabling vote button after the user voted
name: Bug report about: The vote button is not disabled once the user has already voted title: "Disabling vote button after user voted" labels: bug assignees: ""
Describe the bug
Once the user has voted, the vote button on the election's detail page should be disabled, so that, the user should not vote again. Though the user would be alerted by the Metamask and smart contract, they might lose few transaction fees, if they approve the transaction. Please refer to disabled vote buttons before the start or after the end of the election.
Area Where Bug Occurred
How to reproduce the error/bug
Organise an election, add candidates and vote for them. Even after voting, one can vote again from the frontend (though rejected by smart contract)
PFA of the enabled vote button even after voting.
Before submitting an issue check the below
I have synced all my node versions as mentioned in the project"
I am using the same version of npm as is the project
My current branch is in sync with the development branch