@shushed/helpers 0.0.200-v2-20251126101957 → 0.0.200-v2-20251126121340
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -343,7 +343,7 @@ function parsePrices(priceData, timeZone = 'UTC') {
|
|
|
343
343
|
const priceChanges = (priceData[i].price_changes || []).map(x => ({
|
|
344
344
|
effective_from: x.effective_from ? (!isNaN(new Date(x.effective_from).getTime()) ? convertDateToDatetimeTZ(x.effective_from, timeZone) : null) : defaultStartDate,
|
|
345
345
|
effective_until: x.effective_until ? (!isNaN(new Date(x.effective_until).getTime()) ? convertDateToDatetimeTZ(x.effective_until, timeZone) : null) : defaultEndDate,
|
|
346
|
-
price: x.price
|
|
346
|
+
price: x.price,
|
|
347
347
|
price_type: x.price_type,
|
|
348
348
|
}));
|
|
349
349
|
const rrpPriceTypes = parsePriceType(priceChanges.filter((x) => x.price_type === 'rrp'));
|