mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Don't clear state if not logged in (#2499)
This commit is contained in:
@@ -253,6 +253,10 @@ export class AppComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async clearComponentStates() {
|
private async clearComponentStates() {
|
||||||
|
if (!(await this.stateService.getIsAuthenticated())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.stateService.setBrowserGroupingComponentState(null),
|
this.stateService.setBrowserGroupingComponentState(null),
|
||||||
this.stateService.setBrowserCipherComponentState(null),
|
this.stateService.setBrowserCipherComponentState(null),
|
||||||
|
|||||||
Reference in New Issue
Block a user