From 0f0c7261c4e4a2db343517f0d66fcf7a682f4188 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Tue, 26 Jun 2018 17:19:26 -0400 Subject: [PATCH] fixup! fixup! Merge branch '000-snt-voting-dapp' of https://github.com/status-im/contracts into 000-snt-voting-dapp --- app/components/simple-voting/AddPoll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/simple-voting/AddPoll.js b/app/components/simple-voting/AddPoll.js index 2d9a990..5200111 100644 --- a/app/components/simple-voting/AddPoll.js +++ b/app/components/simple-voting/AddPoll.js @@ -71,7 +71,7 @@ const AddPoll = withFormik({ const { eth: { getBlockNumber }, utils: { asciiToHex } } = window.web3; const { addPoll } = PollManager.methods; const currentBlock = await getBlockNumber(); - const endTime = currentBlock * oneDayinBlocks * 90; + const endTime = currentBlock + (oneDayinBlocks * 90); addPoll( endTime, asciiToHex(description)