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() {
|
||||
if (this.session.isSpectator && this.player.id !== this.session.playerId)
|
||||
return;
|
||||
const pronouns = prompt(
|
||||
"Player preferred pronouns",
|
||||
this.player.pronouns
|
||||
);
|
||||
const pronouns =
|
||||
prompt("Player preferred pronouns", this.player.pronouns) ||
|
||||
this.player.pronouns;
|
||||
this.updatePlayer("pronouns", pronouns, true);
|
||||
},
|
||||
toggleStatus() {
|
||||
|
|
Loading…
Reference in New Issue