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() {
|
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 =
|
const pronouns = prompt("Player pronouns", this.player.pronouns);
|
||||||
prompt("Player pronouns", this.player.pronouns) || this.player.pronouns;
|
//Only update pronouns if not null (prompt was not cancelled)
|
||||||
|
if (pronouns !== null) {
|
||||||
this.updatePlayer("pronouns", pronouns, true);
|
this.updatePlayer("pronouns", pronouns, true);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
toggleStatus() {
|
toggleStatus() {
|
||||||
if (this.grimoire.isPublic) {
|
if (this.grimoire.isPublic) {
|
||||||
|
|
Loading…
Reference in New Issue