From 6c8cb7c3aa7220ec71e1bff6def804fe4783859a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaume=20Sol=C3=ADs?= Date: Mon, 8 Apr 2024 10:38:16 +0200 Subject: [PATCH] cambiar dated por nextDay, que es como viene de pro --- src/components/@inputs/PostalCode.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/@inputs/PostalCode.vue b/src/components/@inputs/PostalCode.vue index af1f897..6e6b8d0 100644 --- a/src/components/@inputs/PostalCode.vue +++ b/src/components/@inputs/PostalCode.vue @@ -43,8 +43,8 @@ export default defineComponent({ } = await apiBack.get(`/delivery/dates`, { params: { postalCode: postalCodeInput.value }, }); - const dates = data.map(({ dated }) => { - const getDate = new Date(dated); + const dates = data.map(({ nextDay }) => { + const getDate = new Date(nextDay); const day = getDate.getDate().toString().padStart(2, "0"); const month = (getDate.getMonth() + 1).toString().padStart(2, "0"); const year = getDate.getFullYear();