We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d44eb09 commit 2fced81Copy full SHA for 2fced81
library/src/components/inputs/datetimepicker/TimePicker.tsx
@@ -108,7 +108,7 @@ function useOptions({
108
.map((it) => Number.parseInt(it) ?? 0)
109
let end = dayjs().hour(endHourMin[0]).minute(endHourMin[1])
110
let curr = dayjs().hour(startHourMin[0]).minute(startHourMin[1])
111
- if (end.isSame(curr)) {
+ if (end.isSame(curr) || end.isBefore(curr)) {
112
end = end.add(1, "day")
113
}
114
0 commit comments