From 249bc5bca607c64ad639d4e07143629b4b13f432 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 26 Jan 2021 16:48:23 -0700 Subject: [PATCH] Add a property if there are multiple guessers on a team --- web/src/components/Hand.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/src/components/Hand.vue b/web/src/components/Hand.vue index 235153e..342a5ab 100644 --- a/web/src/components/Hand.vue +++ b/web/src/components/Hand.vue @@ -85,6 +85,15 @@ export default { }; return false; }, + multipleGuessersOnTeam() { + let player_count = 0; + for (var player of this.$store.state.players) { + if (player.team === this.$store.state.team && this.userRole === player.role) { + player_count++; + }; + }; + return player_count > 1; + }, }, methods: { sendCard(cardIndex) {