1
0
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:
aj-rosado
2024-02-26 11:59:50 +00:00
committed by GitHub
parent 7bbe16860f
commit d0aea28f0a

View File

@@ -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();
}
});