From a4a44f9ba8e34269d1942b1ad139b252d30b320c Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 3 Mar 2021 22:34:02 +0000 Subject: [PATCH] fixing bug stopping pronouns from being removed by checking for null specifically instead of just a falsey value. --- src/components/Player.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index 2f86725..e5f7d9c 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -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) {