This commit is contained in:
Adrian Hopek 2022-03-28 13:58:26 +02:00
parent 3beac250a5
commit 439c288d74

View File

@ -401,7 +401,12 @@ function onFromChange(selectedDates, dateStr) {
refreshEstimatedDays(form.from, form.to)
}
function onToChange() {
function onToChange(selectedDates, dateStr) {
if (form.from === null) {
form.from = dateStr
return
}
refreshEstimatedDays(form.from, form.to)
}