diff --git a/app/components/flow/VotingCredits.js b/app/components/flow/VotingCredits.js index 2717a15..3ed0009 100644 --- a/app/components/flow/VotingCredits.js +++ b/app/components/flow/VotingCredits.js @@ -45,6 +45,10 @@ class VotingCredits extends Component { } } + redirectToConnect = () => { + this.props.history.push('/wallet/' + this.props.idPoll); + } + render(){ const {polls, balances, idPoll} = this.props; @@ -64,22 +68,22 @@ class VotingCredits extends Component { return (polls ?
{title} - + - + Voting Credits {tokenBalance} { tokenBalance > 0 && - + You get one credit for each SNT held in your wallet at the time of poll was created ({d.DDMMYYYY()}). They are usable only in this poll. } { tokenBalance == 0 &&
- + No SNT in your wallet - + To vote, you need to connect with a wallet that holds SNT tokens when the poll was created ({d.DDMMYYYY()}).
@@ -88,15 +92,15 @@ class VotingCredits extends Component {
{ ethBalance == 0 && - + ETH {ethBalance}
- + Not enough ETH in your wallet - + You will sign a transaction to confirm your vote. No tokens are sent, but you need ETH to pay for gas (Ethereum network fee).