mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
Update jslib (#1327)
* Update jslib * Add a null check * Reworked condition * Ran prettier
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 3a1b5bf9a0...bcbb52e6ec
@@ -582,11 +582,14 @@ export class AppComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async reloadProcess(): Promise<void> {
|
private async reloadProcess(): Promise<void> {
|
||||||
const accounts = Object.keys(this.stateService.accounts.getValue());
|
const accounts = this.stateService.accounts.getValue();
|
||||||
if (accounts.length > 0) {
|
if (accounts != null) {
|
||||||
for (const userId of accounts) {
|
const keys = Object.keys(accounts);
|
||||||
if (!(await this.vaultTimeoutService.isLocked(userId))) {
|
if (keys.length > 0) {
|
||||||
return;
|
for (const userId of keys) {
|
||||||
|
if (!(await this.vaultTimeoutService.isLocked(userId))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user