Commit 9b53baed authored by Hines, Jesse's avatar Hines, Jesse
Browse files

Fix date pickers

parent f1b0bd8c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -23,8 +23,11 @@ export function BasicSettingsForm({
      <SharedDatePicker
        label="Start Date"
        onChange={(newDate) => {
          if (newDate && new Date(newDate) >= new Date(form.end)) {
            const endDate = addMinutes(newDate, 60).toISOString();
          if (newDate) {
            let endDate = form.end;
            if (new Date(newDate) >= new Date(form.end)) {
              endDate = addMinutes(newDate, 60).toISOString();
            }
            setForm({ ...form, start: newDate, end: endDate });
          }
        }}