Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Block votes
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Jul 19, 2020
1 parent 65f6df8 commit 9afc78d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ router.post('/message', async (req, res) => {
msg.payload.startBlock >= msg.payload.endBlock
) ||
msg.type === 'vote' && (
1 === 1 || // Block votes
Object.keys(msg.payload).length !== 2 ||
!msg.payload.proposal ||
!msg.payload.choice
Expand Down
2 changes: 1 addition & 1 deletion src/views/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/>
</div>
<Block
v-if="
v-if="1 !== 1 && // Block votes
web3.blockNumber >= proposal.msg.payload.startBlock &&
web3.blockNumber < proposal.msg.payload.endBlock
"
Expand Down

0 comments on commit 9afc78d

Please sign in to comment.