We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d6018 commit dc65d41Copy full SHA for dc65d41
src/components/schedule/day.astro
@@ -141,7 +141,7 @@ for (let i = 0; i < sessionAndTimes.length - 1; i++) {
141
if (nextStart !== end) {
142
const duration = differenceInMinutes(nextStart, end);
143
144
- if (duration === 5) {
+ if (duration >= 5) {
145
const roomChangeStart = end;
146
const roomChangeTime = format(roomChangeStart, "HH:mm");
147
const roomChangeEnd = addMinutes(roomChangeStart, 5);
@@ -167,7 +167,9 @@ for (let i = 0; i < sessionAndTimes.length - 1; i++) {
167
},
168
];
169
} else {
170
- console.warn("Missing room change", end, nextStart, duration);
+ if (duration != 0){
171
+ console.warn("Missing room change", end, nextStart, duration);
172
+ }
173
}
174
175
0 commit comments