1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-06 00:03:29 +00: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

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();
});