1
0
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:
aj-rosado 2024-02-26 11:59:50 +00:00 committed by GitHub
parent 7bbe16860f
commit d0aea28f0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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