mirror of https://github.com/bra1n/townsquare.git
fix nomination history type
This commit is contained in:
parent
6d169f16cb
commit
1f58f344eb
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue