mirror of
https://github.com/status-im/visual-identity.git
synced 2025-02-12 20:46:35 +00:00
Disabling voting if no SNT balance
This commit is contained in:
parent
227c01e853
commit
d810019375
@ -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