Skip to content

Commit

Permalink
style: custom name timetable fix (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoeTerrier authored Jan 21, 2025
1 parent a762fdb commit 263d2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Timetable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ export function Timetable(props: { activities: ICBDActivity[] }) {
JSON.stringify(activity.timeslots)
);

timeslots.forEach(({ start_time, end_time, room }) => {
timeslots.forEach(({ start_time, end_time, room, custom_name }) => {
let tStartTime = timeToMinutes(start_time);
startTime = Math.min(tStartTime, startTime);
let tEndTime = timeToMinutes(end_time);
endTime = Math.max(tEndTime, endTime);

if (!rooms[room]) rooms[room] = [];
rooms[room].push([{ start_time, end_time, room }, activity]);
rooms[room].push([{ start_time, end_time, room, custom_name }, activity]);
});
});

Expand Down

0 comments on commit 263d2ce

Please sign in to comment.