Skip to content

Commit

Permalink
fixed another crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lithium committed Apr 5, 2019
1 parent c1e9050 commit 2801e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ getter.on("end", () => {
.reduce((s, r) => (stats.cowardVotes[r] > stats.cowardVotes[s]) ? r : s);
}

const totalCowards = Object.values(stats.cowardVotes).reduce((a, b) => a + b);
const totalCowards = Object.values(stats.cowardVotes).reduce((a, b) => a + b, 0);

console.log(`Total comments: ${stats.commentCount}`);
console.log(`Total votes: ${totalVotes + totalCowards + stats.votesAfterDeadline}`);
Expand Down

0 comments on commit 2801e11

Please sign in to comment.