1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-12-24 16:38:24 +01:00

Adjust an iterator used to check for locked vaults on reloadProcess

This commit is contained in:
addison 2022-01-25 09:46:21 -05:00
parent f061f5bda9
commit 748b02e115

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;
}
}