From 1cf9926f0a46f4b030cccf3aa24afc9671a0f6a5 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Mon, 2 Dec 2024 10:07:45 +0100 Subject: [PATCH] - quickfix for saving call; --- src/helpers/formatDateString.js | 1 + src/pages/BandoEdit/components/BandoEditFormStep2/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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();