From 1f58f344ebb47e7e7703a598a805b6a96b5e77c5 Mon Sep 17 00:00:00 2001 From: Steffen Date: Tue, 22 Dec 2020 13:25:09 +0100 Subject: [PATCH] fix nomination history type --- CHANGELOG.md | 8 ++++++++ src/store/modules/session.js | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 159497f..865e264 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Release Notes +## Version 2.0.2 +- fix nomination history type not detecting travelers +- fix live session domain whitelist +- fix build path +- fix changelog version numbering + +--- + ## Version 2.0.1 - clearing the nomination history as the Storyteller clears it for the players too - vote buttons should work in all situations correctly now diff --git a/src/store/modules/session.js b/src/store/modules/session.js index 172046b..c683212 100644 --- a/src/store/modules/session.js +++ b/src/store/modules/session.js @@ -66,7 +66,8 @@ const mutations = { */ addHistory(state, players) { if (!state.nomination || state.lockedVote <= players.length) return; - const isBanishment = players[state.nomination[1]].team === "traveler"; + const isBanishment = players[state.nomination[1]].role.team === "traveler"; + console.log(isBanishment); state.voteHistory.push({ nominator: players[state.nomination[0]].name, nominee: players[state.nomination[1]].name,