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)