mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-24 11:55:50 +01:00
Adjust an iterator used to check for locked vaults on reloadProcess (#1268)
This commit is contained in:
parent
555ee1c230
commit
d80fdc8a78
@ -575,8 +575,8 @@ 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 = Object.keys(this.stateService.accounts.getValue());
|
||||||
if (accounts.length > 0) {
|
if (accounts.length > 0) {
|
||||||
for (const userId in accounts) {
|
for (const userId of accounts) {
|
||||||
if (!(await this.vaultTimeoutService.isLocked(accounts[userId]))) {
|
if (!(await this.vaultTimeoutService.isLocked(userId))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user