From b0f735814f7902b4ef6ccf31463d374d2753ec8c Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Fri, 11 Feb 2022 03:31:40 -0600 Subject: [PATCH] Load component on init, then watch (#669) --- angular/src/components/lock.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/angular/src/components/lock.component.ts b/angular/src/components/lock.component.ts index 04672dcdf9..2f4e639a5c 100644 --- a/angular/src/components/lock.component.ts +++ b/angular/src/components/lock.component.ts @@ -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(); });