mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Do not call load twice on init of LockComponent (#3295)
This commit is contained in:
committed by
GitHub
parent
d30701ada7
commit
4b70278b3f
@@ -58,8 +58,6 @@ export class LockComponent implements OnInit, OnDestroy {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
// Load the first and observe updates
|
|
||||||
await this.load();
|
|
||||||
this.activeAccountSubscription = this.stateService.activeAccount$.subscribe(async () => {
|
this.activeAccountSubscription = this.stateService.activeAccount$.subscribe(async () => {
|
||||||
await this.load();
|
await this.load();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user