diff --git a/jslib b/jslib index 3a1b5bf9..bcbb52e6 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 3a1b5bf9a0fcea7f8fd46d480eb0468cc0ee77c9 +Subproject commit bcbb52e6ec007b9bafd09fab5253bd3f015e694f diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a0315f41..90dfd914 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -582,11 +582,14 @@ export class AppComponent implements OnInit { } private async reloadProcess(): Promise { - const accounts = Object.keys(this.stateService.accounts.getValue()); - if (accounts.length > 0) { - for (const userId of accounts) { - if (!(await this.vaultTimeoutService.isLocked(userId))) { - return; + const accounts = this.stateService.accounts.getValue(); + if (accounts != null) { + const keys = Object.keys(accounts); + if (keys.length > 0) { + for (const userId of keys) { + if (!(await this.vaultTimeoutService.isLocked(userId))) { + return; + } } } }