diff --git a/src/helpers/formatDateString.js b/src/helpers/formatDateString.js index 9690a1b..9c08c55 100644 --- a/src/helpers/formatDateString.js +++ b/src/helpers/formatDateString.js @@ -4,6 +4,7 @@ * @return {string} */ const formatDateString = (date) => { + console.log('date', date); const year = date.getFullYear(); const month = String(date.getMonth() + 1).padStart(2, '0'); const day = String(date.getDate()).padStart(2, '0'); diff --git a/src/pages/BandoEdit/components/BandoEditFormStep2/index.js b/src/pages/BandoEdit/components/BandoEditFormStep2/index.js index c933642..7bae164 100644 --- a/src/pages/BandoEdit/components/BandoEditFormStep2/index.js +++ b/src/pages/BandoEdit/components/BandoEditFormStep2/index.js @@ -61,7 +61,7 @@ const BandoEditFormStep2 = forwardRef(function ({ initialData, setInitialData, g if (is(String, formData.startDate)) { starDate = formData.startDate; } else { - starDate = formatDateString(formData.starDate); + starDate = formatDateString(formData.startDate); } formData = wrap(formData).insert(['dates'], starDate, 0).value();