0
0
Fork 0

Change in newPrice assign

This commit is contained in:
William Buezas 2024-04-22 09:42:28 -03:00
parent 2105d7870b
commit dce48b536d
1 changed files with 5 additions and 7 deletions

View File

@ -318,16 +318,14 @@ const addRow = () => {
const daysInWeek = 7; const daysInWeek = 7;
const nextWeek = new Date(today.getTime() + daysInWeek * millisecsInDay); const nextWeek = new Date(today.getTime() + daysInWeek * millisecsInDay);
fixedPricesOriginalData.value.push({ const newPrice = {
started: today, started: today,
ended: nextWeek, ended: nextWeek,
hasMinPrice: 0, hasMinPrice: 0,
}); };
fixedPrices.value.push({
started: today, fixedPricesOriginalData.value.push({ ...newPrice });
ended: nextWeek, fixedPrices.value.push({ ...newPrice });
hasMinPrice: 0,
});
return; return;
} }