From 6520bc5bc5e05a34fb33b33fb584ad76d78905b3 Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Tue, 29 Apr 2025 10:00:58 +0000 Subject: [PATCH] Merged in fix/SW-1879-aa-track-bed-breakfast-pay-3 (pull request #1900) fix: SW-1879 Updated values in tracking * fix: SW-1879 Updated bed type value in tracking * fix: SW-1879 Updated breakfast price to indicate total price Approved-by: Michael Zetterberg --- .../components/HotelReservation/EnterDetails/BedType/index.tsx | 2 +- apps/scandic-web/utils/tracking/booking.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/BedType/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/BedType/index.tsx index c0d06b40d..e4c3160e3 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/BedType/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/BedType/index.tsx @@ -48,7 +48,7 @@ export default function BedType() { roomTypeCode: matchingRoom.value, } updateBedType(bedType) - trackBedSelection(bedType.roomTypeCode) + trackBedSelection(bedType.description) } }, [bedTypes, updateBedType] diff --git a/apps/scandic-web/utils/tracking/booking.ts b/apps/scandic-web/utils/tracking/booking.ts index 73eda63b7..57510a690 100644 --- a/apps/scandic-web/utils/tracking/booking.ts +++ b/apps/scandic-web/utils/tracking/booking.ts @@ -53,7 +53,7 @@ export function trackBreakfastSelection({ productCategory: "", productId: breakfastPackage.code, productUnits: units, - productPrice: units > 0 ? breakfastPackage.localPrice.price : 0, + productPrice: units > 0 ? breakfastPackage.localPrice.price * units : 0, productPoints: 0, productType: "food", productName: breakfastPackage.packageType,