From 00b4963cc6af21a578a588b113ac0161f1227d4e Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 7 Jan 2024 10:32:08 +0100 Subject: [PATCH] Refactoring --- apps/client/src/app/components/toggle/toggle.component.html | 2 +- apps/client/src/app/components/toggle/toggle.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 }); } }