diff --git a/apps/scandic-web/utils/tracking/myStay.ts b/apps/scandic-web/utils/tracking/myStay.ts index c19f56856..fec04eacf 100644 --- a/apps/scandic-web/utils/tracking/myStay.ts +++ b/apps/scandic-web/utils/tracking/myStay.ts @@ -195,7 +195,7 @@ export function trackAddAncillary( productId: ancillary?.id, productName: ancillary?.title, productUnits: quantityWithCard, - productPrice: ancillary?.price.total, + productPrice: (ancillary?.price.total ?? 0) * (quantityWithCard ?? 0), currency: ancillary?.price.currency, productCategory: ancillary?.categoryName, }) @@ -207,7 +207,7 @@ export function trackAddAncillary( productId: ancillary?.loyaltyCode, productName: ancillary?.title, productUnits: quantityWithPoints, - productPoints: ancillary?.points, + productPoints: (ancillary?.points ?? 0) * (quantityWithPoints ?? 0), productCategory: ancillary?.categoryName, }) }