Fix numbers-as-string bug on Senate page
commit1922d299f12e0d754999892824483d6d490171b4
authorFang <git@fang.io>
dateThu 12 Dec 2019, 01:26 (7 years ago)
parente5c1f89
src/views/Senate.js+1−1
@@ -90,7 +90,7 @@ export default function Senate() {
9090 let polls = {};
9191 for (let doc of proposals) {
9292 let poll = await azimuth.polls.getDocumentPoll(_contracts, doc);
93− poll.endTime = polls.start + poll.duration;
93+ poll.endTime = convertToInt(poll.start) + convertToInt(poll.duration);
9494 poll.hasVoted = await azimuth.polls.hasVotedOnDocumentPoll(
9595 _contracts,
9696 _point,