diff --git a/src/components/Vote.vue b/src/components/Vote.vue index 0c91994..4bdd242 100644 --- a/src/components/Vote.vue +++ b/src/components/Vote.vue @@ -10,17 +10,14 @@ {{ nominee.name }}!
- - + + {{ voters.length }} vote{{ voters.length !== 1 ? "s" : "" }} + + in favor + + (majority is {{ Math.ceil(alive / 2) }}) + + (majority is {{ Math.ceil(players.length / 2) }})
{{ voters.join(", ") }} @@ -170,7 +167,10 @@ export default { ...voters.slice(nomination + 1), ...voters.slice(0, nomination + 1) ]; - return reorder.slice(0, this.session.lockedVote - 1).filter(n => !!n); + return (this.session.lockedVote + ? reorder.slice(0, this.session.lockedVote - 1) + : reorder + ).filter(n => !!n); } }, data() {