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
1 changed files with 2 additions and 0 deletions

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