fixing bug stopping pronouns from being removed by checking for null specifically instead of just a falsey value.

This commit is contained in:
Dave 2021-03-03 22:34:02 +00:00
parent 4d2225c994
commit a4a44f9ba8
1 changed files with 5 additions and 3 deletions

View File

@ -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;
this.updatePlayer("pronouns", pronouns, true);
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) {