diff --git a/src/app/shared/components/hour-picker/hour-picker.component.ts b/src/app/shared/components/hour-picker/hour-picker.component.ts index 9c51b199f46bd1a462051619ae88f5d2f8529d42..7fa227f2bbf5df06826ef7323b493e3b13a08f1c 100644 --- a/src/app/shared/components/hour-picker/hour-picker.component.ts +++ b/src/app/shared/components/hour-picker/hour-picker.component.ts @@ -20,7 +20,7 @@ export class HourPickerComponent implements OnChanges, OnDestroy { public error = false; private copiedDay: any; - private isInputSeleceted = false; + private isInputSelected = false; public copiedDayName = ''; public structure = { hours: this.initHoursDefault(), @@ -283,17 +283,16 @@ export class HourPickerComponent implements OnChanges, OnDestroy { } public onFocus(): void { - this.isInputSeleceted = true; + this.isInputSelected = true; } public onBlur(): void { - this.isInputSeleceted = false; + this.isInputSelected = false; this.submitForm(); } public submitForm(): void { - console.log('submit ? ', this.isInputSeleceted); - if (this.checkHoursValid() && this.isInputSeleceted === false) { + if (this.checkHoursValid() && this.isInputSelected === false) { this.updateForm.emit(this.parseHoursToForm()); } else { this.updateFormError.emit();