Skip to content

Commit

Permalink
unvote total reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
lljxx1 committed Nov 8, 2018
1 parent 12a76f6 commit d64022c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ReferendumState.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ReferendumState {
proposalData.proposal_json = JSON.parse(proposalData.proposal_json);
}catch(e){}


proposalData.created_at = moment.utc(action.timestamp).unix();
proposalData.expires_at_unix = moment.utc(proposalData.expires_at).unix();

Expand Down Expand Up @@ -122,6 +122,7 @@ class ReferendumState {
}else{
voteProposal.against--;
}
voteProposal.total--;
// this.voters.remove(existsVoter);
}else{
if(existsVoter){
Expand Down

0 comments on commit d64022c

Please sign in to comment.