From e7c72ce44d7d3418fe1c6ca6a4f08450eb4c0c34 Mon Sep 17 00:00:00 2001 From: Hank-Choi Date: Mon, 7 Aug 2023 23:33:42 +0900 Subject: [PATCH] =?UTF-8?q?startMinute,=20endMinute=20null=EC=9D=B8=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=EB=A7=8C=20=EC=8B=B1=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/timetable/TimetableLectureService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/timetable/TimetableLectureService.ts b/src/core/timetable/TimetableLectureService.ts index 4add72c7..4614336b 100644 --- a/src/core/timetable/TimetableLectureService.ts +++ b/src/core/timetable/TimetableLectureService.ts @@ -256,12 +256,12 @@ function timesOverlap(time1: TimePlace, time2: TimePlace): boolean { function syncRealTimeWithPeriod(lecture: any): void { lecture.class_time_json.forEach(it => { - if (it.start_time && it.end_time) { + if (it.start_time != null && it.end_time != null) { const startTime = Time.fromHourMinuteString(it.start_time) const endTime = Time.fromHourMinuteString(it.end_time) it.startMinute = startTime.totalMinute it.endMinute = endTime.totalMinute - } else if (it.start && it.len) { + } else if (it.start != null && it.len != null) { it.startMinute = new Time((it.start + 8) * 60).totalMinute it.endMinute = new Time((it.start + it.len + 8) * 60).totalMinute }