mirror of https://github.com/bra1n/townsquare.git
stop pronouns being set to null when cacelling prompt
This commit is contained in:
parent
6ad516588c
commit
2a028bb7cd
|
@ -247,10 +247,9 @@ export default {
|
||||||
changePronouns() {
|
changePronouns() {
|
||||||
if (this.session.isSpectator && this.player.id !== this.session.playerId)
|
if (this.session.isSpectator && this.player.id !== this.session.playerId)
|
||||||
return;
|
return;
|
||||||
const pronouns = prompt(
|
const pronouns =
|
||||||
"Player preferred pronouns",
|
prompt("Player preferred pronouns", this.player.pronouns) ||
|
||||||
this.player.pronouns
|
this.player.pronouns;
|
||||||
);
|
|
||||||
this.updatePlayer("pronouns", pronouns, true);
|
this.updatePlayer("pronouns", pronouns, true);
|
||||||
},
|
},
|
||||||
toggleStatus() {
|
toggleStatus() {
|
||||||
|
|
Loading…
Reference in New Issue