stop pronouns being set to null when cacelling prompt

This commit is contained in:
Dave 2021-03-01 14:53:32 +00:00
parent 6ad516588c
commit 2a028bb7cd
1 changed files with 3 additions and 4 deletions

View File

@ -247,10 +247,9 @@ 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 = prompt( const pronouns =
"Player preferred pronouns", prompt("Player preferred pronouns", this.player.pronouns) ||
this.player.pronouns this.player.pronouns;
);
this.updatePlayer("pronouns", pronouns, true); this.updatePlayer("pronouns", pronouns, true);
}, },
toggleStatus() { toggleStatus() {