Skip to content

Commit

Permalink
removed unused log
Browse files Browse the repository at this point in the history
  • Loading branch information
Corned committed Sep 6, 2024
1 parent 760989f commit 45aa63d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/src/components/Timeline/Timeline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const Timeline = ({

const mouseRelativeToTarget = (mouseX - targetLeft) / targetWidth

// I'm sorry this is awful
const startHour = Math.floor(mouseRelativeToTarget * 24)
const startMinute = (Math.floor(mouseRelativeToTarget * 24 * 4) % 4) * 15

Expand All @@ -73,9 +74,6 @@ const Timeline = ({
const startTime = (`${startHour.toString().padStart(2, "0")}:${startMinute.toString().padStart(2, "0")}`)
const endTime = (`${endHour.toString().padStart(2, "0")}:${endMinute.toString().padStart(2, "0")}`)

console.log(startTime, endTime);


safeHandleOpenNewReservationModal({ startTime, endTime })
}

Expand Down

0 comments on commit 45aa63d

Please sign in to comment.