1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-26 17:08:33 +01:00

Load component on init, then watch (#669)

This commit is contained in:
Matt Gibson 2022-02-11 03:31:40 -06:00 committed by GitHub
parent cda649fa21
commit b0f735814f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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