cambiar dated por nextDay, que es como viene de pro
This commit is contained in:
parent
d6bebbcc70
commit
6c8cb7c3aa
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue