mirror of https://github.com/bra1n/townsquare.git
fixed setting bluffs in spectator session (fixes #16)
This commit is contained in:
parent
ca1c1113b2
commit
bdc9b5c6a2
|
@ -86,7 +86,8 @@ export default {
|
|||
},
|
||||
openRoleModal(playerIndex) {
|
||||
const player = this.players[playerIndex];
|
||||
if (this.session.isSpectator && player.role.team === "traveler") return;
|
||||
if (this.session.isSpectator && player && player.role.team === "traveler")
|
||||
return;
|
||||
this.selectedPlayer = playerIndex;
|
||||
this.$store.commit("toggleModal", "role");
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue