1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-26 17:08:33 +01:00

Adjust an iterator used to check for locked vaults on reloadProcess (#1268)

This commit is contained in:
Addison Beck 2022-01-25 09:49:57 -05:00 committed by GitHub
parent 555ee1c230
commit d80fdc8a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -575,8 +575,8 @@ 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 in accounts) {
if (!(await this.vaultTimeoutService.isLocked(accounts[userId]))) {
for (const userId of accounts) {
if (!(await this.vaultTimeoutService.isLocked(userId))) {
return;
}
}