From 3f2d3bfcb172891ac1840eca496c0ec0f4816f1a Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Sun, 4 Oct 2020 13:13:29 -0500 Subject: [PATCH] Fix user profile cache persisting over logout/login cycle --- site/character_page/character_page.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site/character_page/character_page.vue b/site/character_page/character_page.vue index f515abb..68421d7 100644 --- a/site/character_page/character_page.vue +++ b/site/character_page/character_page.vue @@ -213,8 +213,12 @@ await methods.fieldsGet(); - if ((this.selfCharacter === undefined) && (Utils.settings.defaultCharacter >= 0)) + if ( + ((this.selfCharacter === undefined) && (Utils.settings.defaultCharacter >= 0)) + || (_.get(this.selfCharacter, 'character.name') !== core.characters.ownCharacter.name) + ) { due.push(this.loadSelfCharacter()); + } if((mustLoad) || (this.character === undefined)) due.push(this._getCharacter(skipCache));