Skip to content

Commit 17b6cfd

Browse files
committed
Fix end slot selection
1 parent d353f56 commit 17b6cfd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/TimeSlots.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ export function getSlotMetrics({ min: start, max: end, step, timeslots }) {
130130

131131
const rangeStartMin = positionFromDate(rangeStart)
132132
const rangeEndMin = positionFromDate(rangeEnd)
133-
const top =
134-
rangeEndMin - rangeStartMin < step
135-
? ((rangeStartMin - step) / (step * numSlots)) * 100
136-
: (rangeStartMin / (step * numSlots)) * 100
133+
const top = (rangeStartMin / (step * numSlots)) * 100
137134

138135
return {
139136
top,

0 commit comments

Comments
 (0)