1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-25 17:32:46 +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() {
// Load the first and observe updates
await this.load();
this.stateService.activeAccount.subscribe(async (_userId) => {
await this.load();
});