From bd4bba845fa8ee1bd36038093886b640e4cbd5c8 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Wed, 19 May 2021 12:58:37 +0200 Subject: [PATCH] fix: remove console.log + clean code --- .../components/hour-picker/hour-picker.component.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 9c51b199f..7fa227f2b 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(); -- GitLab