mirror of https://github.com/bra1n/townsquare.git
fixing bug stopping pronouns from being removed by checking for null specifically instead of just a falsey value.
This commit is contained in:
parent
4d2225c994
commit
a4a44f9ba8
|
@ -250,9 +250,11 @@ export default {
|
|||
changePronouns() {
|
||||
if (this.session.isSpectator && this.player.id !== this.session.playerId)
|
||||
return;
|
||||
const pronouns =
|
||||
prompt("Player pronouns", this.player.pronouns) || this.player.pronouns;
|
||||
const pronouns = prompt("Player pronouns", this.player.pronouns);
|
||||
//Only update pronouns if not null (prompt was not cancelled)
|
||||
if (pronouns !== null) {
|
||||
this.updatePlayer("pronouns", pronouns, true);
|
||||
}
|
||||
},
|
||||
toggleStatus() {
|
||||
if (this.grimoire.isPublic) {
|
||||
|
|
Loading…
Reference in New Issue