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:
@@ -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]
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user