mirror of https://github.com/bra1n/townsquare.git
adding additional validation to changePronoun method in player.vue
This commit is contained in:
parent
e058f065df
commit
ec05b07329
|
@ -240,6 +240,8 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
changePronoun() {
|
||||
if (!this.session.isSpectator || this.player.id !== this.session.playerId)
|
||||
return;
|
||||
const pronoun = prompt("Player preffered pronouns", this.player.pronoun);
|
||||
this.$store.commit("players/setPronoun", {
|
||||
player: this.player,
|
||||
|
|
Loading…
Reference in New Issue