mirror of
https://github.com/status-im/snt-voting.git
synced 2025-02-23 15:48:10 +00:00
Disabling voting if no SNT balance
This commit is contained in:
parent
f83aa448c4
commit
c7897b16c4
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user