diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/tracking.ts b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/tracking.ts index 6eb4719d0..24661c301 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/tracking.ts +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/tracking.ts @@ -169,6 +169,10 @@ export function getTracking( booking.searchType === REDEMPTION ? "true" : "false", roomPrice: calcTotalRoomPrice(rooms, isMember), totalPrice: calcTotalPrice(rooms, isMember), + points: + // @ts-expect-error - redemption object doesn't exist error + rooms.find((room) => "redemption" in room.roomRate)?.roomRate.redemption + .localPrice.pointsPerStay ?? "n/a", searchTerm: city, searchType: "hotel", specialRoomType: rooms diff --git a/apps/scandic-web/types/components/tracking.ts b/apps/scandic-web/types/components/tracking.ts index c89dc9341..a61084909 100644 --- a/apps/scandic-web/types/components/tracking.ts +++ b/apps/scandic-web/types/components/tracking.ts @@ -88,7 +88,7 @@ export type TrackingSDKHotelInfo = { revenueCurrencyCode?: string // SEK, DKK, NOK, EUR rewardNight?: string rewardNightAvailability?: string - points?: number // Should be sent only on confirmation page + points?: number | string // Should be sent on confirmation page and enter-details page roomPrice?: number | string roomTypeCode?: string roomTypeName?: string