fix nomination history type

This commit is contained in:
Steffen 2020-12-22 13:25:09 +01:00
parent 6d169f16cb
commit 1f58f344eb
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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,