Disabling voting if no SNT balance

This commit is contained in:
Richard Ramos 2018-06-28 08:21:34 -04:00
parent f83aa448c4
commit c7897b16c4
1 changed files with 1 additions and 1 deletions

View File

@ -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 (