- Reverted check if start time and end time overlap, caused an issue

This commit is contained in:
Dejan
2024-10-30 23:37:43 +01:00
parent 01338e7c70
commit f7c121772a

View File

@ -383,10 +383,6 @@ export const ManuallyAddEventModal = () => {
onChange={(time) => {
if (time <= endTime) {
setStartTime(time);
} else {
const currentTime = new Date();
currentTime.setSeconds(0, 0);
setStartTime(currentTime);
}
}}
minuteInterval={5}
@ -428,10 +424,6 @@ export const ManuallyAddEventModal = () => {
onChange={(time) => {
if (time >= endTime) {
setEndTime(time);
} else {
const currentTime = new Date();
currentTime.setSeconds(0, 0);
setEndTime(currentTime);
}
}}
minimumDate={startTime}