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
This commit is contained in:
Hrishikesh Vaipurkar
2025-04-29 10:00:58 +00:00
parent d2e99d2c45
commit 6520bc5bc5
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ export default function BedType() {
roomTypeCode: matchingRoom.value, roomTypeCode: matchingRoom.value,
} }
updateBedType(bedType) updateBedType(bedType)
trackBedSelection(bedType.roomTypeCode) trackBedSelection(bedType.description)
} }
}, },
[bedTypes, updateBedType] [bedTypes, updateBedType]

View File

@@ -53,7 +53,7 @@ export function trackBreakfastSelection({
productCategory: "", productCategory: "",
productId: breakfastPackage.code, productId: breakfastPackage.code,
productUnits: units, productUnits: units,
productPrice: units > 0 ? breakfastPackage.localPrice.price : 0, productPrice: units > 0 ? breakfastPackage.localPrice.price * units : 0,
productPoints: 0, productPoints: 0,
productType: "food", productType: "food",
productName: breakfastPackage.packageType, productName: breakfastPackage.packageType,