From dc65d416c451e6d58d06407deabedbf22de34126 Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 23 Apr 2025 22:39:00 +0200 Subject: [PATCH] Fix room-change. --- src/components/schedule/day.astro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/schedule/day.astro b/src/components/schedule/day.astro index e60260705..dbf4a953b 100644 --- a/src/components/schedule/day.astro +++ b/src/components/schedule/day.astro @@ -141,7 +141,7 @@ for (let i = 0; i < sessionAndTimes.length - 1; i++) { if (nextStart !== end) { const duration = differenceInMinutes(nextStart, end); - if (duration === 5) { + if (duration >= 5) { const roomChangeStart = end; const roomChangeTime = format(roomChangeStart, "HH:mm"); const roomChangeEnd = addMinutes(roomChangeStart, 5); @@ -167,7 +167,9 @@ for (let i = 0; i < sessionAndTimes.length - 1; i++) { }, ]; } else { - console.warn("Missing room change", end, nextStart, duration); + if (duration != 0){ + console.warn("Missing room change", end, nextStart, duration); + } } } }