Skip to content

Commit 2fced81

Browse files
committed
time picker - fix for missing time options
1 parent d44eb09 commit 2fced81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/components/inputs/datetimepicker/TimePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function useOptions({
108108
.map((it) => Number.parseInt(it) ?? 0)
109109
let end = dayjs().hour(endHourMin[0]).minute(endHourMin[1])
110110
let curr = dayjs().hour(startHourMin[0]).minute(startHourMin[1])
111-
if (end.isSame(curr)) {
111+
if (end.isSame(curr) || end.isBefore(curr)) {
112112
end = end.add(1, "day")
113113
}
114114

0 commit comments

Comments
 (0)