1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

Update jslib (#1327)

* Update jslib

* Add a null check

* Reworked condition

* Ran prettier
This commit is contained in:
Addison Beck
2022-02-11 15:34:36 -05:00
committed by GitHub
parent fd4c41b043
commit 881bb3cb49
2 changed files with 9 additions and 6 deletions

2
jslib

Submodule jslib updated: 3a1b5bf9a0...bcbb52e6ec

View File

@@ -582,11 +582,14 @@ export class AppComponent implements OnInit {
}
private async reloadProcess(): Promise<void> {
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;
}
}
}
}