From d80fdc8a78943d52f053b340632708a8f5caa6d2 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Tue, 25 Jan 2022 09:49:57 -0500 Subject: [PATCH] Adjust an iterator used to check for locked vaults on reloadProcess (#1268) --- src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5c1d438e76..93f2f90f97 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -575,8 +575,8 @@ export class AppComponent implements OnInit { private async reloadProcess(): Promise { const accounts = Object.keys(this.stateService.accounts.getValue()); if (accounts.length > 0) { - for (const userId in accounts) { - if (!(await this.vaultTimeoutService.isLocked(accounts[userId]))) { + for (const userId of accounts) { + if (!(await this.vaultTimeoutService.isLocked(userId))) { return; } }