Don't clear state if not logged in (#2499)

This commit is contained in:
Thomas Rittson 2022-04-13 09:15:46 +10:00 committed by Thomas Rittson
parent 035fb73e1b
commit 010db7b7e3
1 changed files with 4 additions and 0 deletions

View File

@ -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),