1
0
Fork 0
mirror of https://github.com/bra1n/townsquare.git synced 2025-08-11 03:05:13 +00:00

fixed setting bluffs in spectator session (fixes )

This commit is contained in:
Steffen 2020-05-27 21:46:37 +02:00
parent ca1c1113b2
commit bdc9b5c6a2
No known key found for this signature in database
GPG key ID: 764D74E98267DFC6

View file

@ -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");
},