Skip to content

Commit

Permalink
fix: make sure appointsments end inside available slot
Browse files Browse the repository at this point in the history
- take duration into account properly
  • Loading branch information
cgawron committed Oct 16, 2024
1 parent 085d544 commit 1d33c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/Booking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const Booking = (props: any) => {
let end = new Date(slot.end);
console.log("start: %s, end: %s", start, end);
let s = start;
while (s < end) {
while (s < addMinutes(end, -event.duration)) {
times.push(s);
s = addMinutes(s, event.duration);
}
Expand Down

0 comments on commit 1d33c8b

Please sign in to comment.