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:
parent
cda649fa21
commit
b0f735814f
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user