diff --git a/apps/client/src/app/components/toggle/toggle.component.html b/apps/client/src/app/components/toggle/toggle.component.html index fd923fdf5..88713760a 100644 --- a/apps/client/src/app/components/toggle/toggle.component.html +++ b/apps/client/src/app/components/toggle/toggle.component.html @@ -1,6 +1,6 @@ >(); - public option = new FormControl(undefined); + public optionFormControl = new FormControl(undefined); public constructor() {} public ngOnInit() {} public ngOnChanges() { - this.option.setValue(this.defaultValue); + this.optionFormControl.setValue(this.defaultValue); } public onValueChange() { - this.change.emit({ value: this.option.value }); + this.change.emit({ value: this.optionFormControl.value }); } }