diff --git a/app/components/simple-voting/PollsList.js b/app/components/simple-voting/PollsList.js index a780429..be2c687 100644 --- a/app/components/simple-voting/PollsList.js +++ b/app/components/simple-voting/PollsList.js @@ -116,7 +116,6 @@ class Poll extends PureComponent { const { fromWei } = web3.utils; const maxValue = Math.floor(Math.sqrt(balance)); const buttonText = originalValue != 0 && value != originalValue ? 'Change Vote' : 'Vote'; - console.log(classes) return ( @@ -127,11 +126,15 @@ class Poll extends PureComponent { Your vote: {value} votes ({value * value} SNT) + {disableVote && + {balance == 0 && You can not vote because your account had no SNT when this poll was created} + {balance != 0 && !_canVote && You can not vote on this poll} + } - + {!disableVote && {isSubmitting ? : } - + } ) }