[bug] await the vault timeout dropdown change event

This commit is contained in:
addison 2022-02-07 11:41:28 -05:00
parent 693e1e76b5
commit 6da6e46900
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ export class SettingsComponent implements OnInit {
this.vaultTimeout.setValue(timeout);
}
this.previousVaultTimeout = this.vaultTimeout.value;
this.vaultTimeout.valueChanges.subscribe((value) => {
this.saveVaultTimeout(value);
this.vaultTimeout.valueChanges.subscribe(async (value) => {
await this.saveVaultTimeout(value);
});
const action = await this.stateService.getVaultTimeoutAction();