fix: Price types has changed to doubles in the API

This commit is contained in:
Niclas Edenvin
2025-03-19 14:07:10 +01:00
committed by Michael Zetterberg
parent 8f9e268802
commit 6fb71dea1b
8 changed files with 30 additions and 38 deletions

View File

@@ -527,7 +527,7 @@ export const ancillaryPackagesSchema = z
description: item.descriptions.html,
imageUrl: item.images[0]?.imageSizes.small,
price: {
total: parseInt(item.variants.ancillary.price.totalPrice),
total: item.variants.ancillary.price.totalPrice,
currency: item.variants.ancillary.price.currency,
},
points: item.variants.ancillaryLoyalty?.points,