Skip to content

Commit

Permalink
PM-9906 - Web Preferences Component - Fix issue where having a vault …
Browse files Browse the repository at this point in the history
…timeout policy would prevent users from updating their preferences. (#10554)
  • Loading branch information
JaredSnider-Bitwarden authored Aug 26, 2024
1 parent 9152c32 commit c3e1b09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/web/src/app/settings/preferences.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ export class PreferencesComponent implements OnInit, OnDestroy {
);
return;
}
const values = this.form.value;

// must get raw value b/c the vault timeout action is disabled when a policy is applied
// which removes the timeout action property and value from the normal form.value.
const values = this.form.getRawValue();

const activeAcct = await firstValueFrom(this.accountService.activeAccount$);

Expand Down

0 comments on commit c3e1b09

Please sign in to comment.