fix: Schedule a timezone change only allows you to select one day not a range (#18045)

This commit is contained in:
Anik Dhabal Babu
2024-12-06 16:53:55 +00:00
committed by GitHub
parent 091400b7d5
commit 8d05656b7b
@@ -102,7 +102,7 @@ const TravelScheduleModal = ({
<DateRangePicker
dates={{
startDate,
endDate: endDate ?? startDate,
endDate,
}}
onDatesChange={({ startDate: newStartDate, endDate: newEndDate }) => {
// If newStartDate does become undefined - we resort back to to-todays date
@@ -150,6 +150,7 @@ const TravelScheduleModal = ({
<DialogFooter showDivider className="relative">
<DialogClose />
<Button
disabled={!endDate}
onClick={() => {
createNewSchedule();
}}>