mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
Checking if hideEmail control is enabled before trying to deactivate it on Sends (#8041)
This commit is contained in:
parent
7bbe16860f
commit
d0aea28f0a
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user