Merge branch '000-snt-voting-dapp' of https://github.com/status-im/contracts into 000-snt-voting-dapp
This commit is contained in:
commit
d20a088138
|
@ -40,7 +40,6 @@ class App extends React.Component {
|
||||||
const { nPolls, poll } = PollManager.methods;
|
const { nPolls, poll } = PollManager.methods;
|
||||||
const polls = await nPolls.call();
|
const polls = await nPolls.call();
|
||||||
const total = await polls.call();
|
const total = await polls.call();
|
||||||
console.log('total', total, polls);
|
|
||||||
if (total) getPolls(total, poll).then(rawPolls => { this.setState({ rawPolls })});
|
if (total) getPolls(total, poll).then(rawPolls => { this.setState({ rawPolls })});
|
||||||
else this.setState({ rawPolls: [] });
|
else this.setState({ rawPolls: [] });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue