cambiar dated por nextDay, que es como viene de pro

This commit is contained in:
Jaume Solís 2024-04-08 10:38:16 +02:00
parent d6bebbcc70
commit 6c8cb7c3aa
1 changed files with 2 additions and 2 deletions

View File

@ -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();