adding additional validation to changePronoun method in player.vue

This commit is contained in:
Dave 2021-01-27 22:36:42 +00:00
parent e058f065df
commit ec05b07329
1 changed files with 2 additions and 0 deletions

View File

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