mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +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
|
this.formGroup.controls.hideEmail.valueChanges
|
||||||
.pipe(takeUntil(this.destroy$))
|
.pipe(takeUntil(this.destroy$))
|
||||||
.subscribe((val) => {
|
.subscribe((val) => {
|
||||||
if (!val && this.disableHideEmail) {
|
if (!val && this.disableHideEmail && this.formGroup.controls.hideEmail.enabled) {
|
||||||
this.formGroup.controls.hideEmail.disable();
|
this.formGroup.controls.hideEmail.disable();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user