From c7897b16c4989e33575ff0615c43d772aff6a3fd Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 28 Jun 2018 08:21:34 -0400 Subject: [PATCH] Disabling voting if no SNT balance --- app/components/simple-voting/PollsList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/simple-voting/PollsList.js b/app/components/simple-voting/PollsList.js index 57894ee..fa714cd 100644 --- a/app/components/simple-voting/PollsList.js +++ b/app/components/simple-voting/PollsList.js @@ -79,7 +79,7 @@ class Poll extends Component { balance, votes } = this.state; - const disableVote = !_canVote || isSubmitting; + const disableVote = balance == 0 || !_canVote || isSubmitting; const maxValue = Math.floor(Math.sqrt(balance)); return (