1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-22 16:29:09 +01:00

Do not call load twice on init of LockComponent (#3295)

This commit is contained in:
Daniel James Smith 2022-08-15 20:38:01 +02:00 committed by GitHub
parent d30701ada7
commit 4b70278b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,6 @@ export class LockComponent implements OnInit, OnDestroy {
) {}
async ngOnInit() {
// Load the first and observe updates
await this.load();
this.activeAccountSubscription = this.stateService.activeAccount$.subscribe(async () => {
await this.load();
});