mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
Checking if hideEmail control is enabled before trying to deactivate it on Sends (#8041)
This commit is contained in:
@@ -180,7 +180,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
this.formGroup.controls.hideEmail.valueChanges
|
||||
.pipe(takeUntil(this.destroy$))
|
||||
.subscribe((val) => {
|
||||
if (!val && this.disableHideEmail) {
|
||||
if (!val && this.disableHideEmail && this.formGroup.controls.hideEmail.enabled) {
|
||||
this.formGroup.controls.hideEmail.disable();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user