From 8cc35397162cc09da0f581f4a0f7e52e3972b993 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Wed, 13 Apr 2022 09:15:46 +1000 Subject: [PATCH] Don't clear state if not logged in (#2499) --- src/popup/app.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/popup/app.component.ts b/src/popup/app.component.ts index 9799e9d400..19ee5bf0bd 100644 --- a/src/popup/app.component.ts +++ b/src/popup/app.component.ts @@ -253,6 +253,10 @@ export class AppComponent implements OnInit { } private async clearComponentStates() { + if (!(await this.stateService.getIsAuthenticated())) { + return; + } + await Promise.all([ this.stateService.setBrowserGroupingComponentState(null), this.stateService.setBrowserCipherComponentState(null),