Merged in feat/SW-1355-reward-night-booking-tracking (pull request #1758)
feat: SW-1355 Tracking implementation reward night booking * feat: SW-1355 Tracking implementation reward night booking * feat: SW-1355 Updated checks and optional params * feat: SW-1355 Typings updated * feat: SW-1355 Removed undefined check * feat: SW-1355 optimized code Approved-by: Christian Andolf
This commit is contained in:
@@ -73,6 +73,11 @@ export async function SelectHotelMapContainer({
|
||||
|
||||
const arrivalDate = new Date(selectHotelParams.fromDate)
|
||||
const departureDate = new Date(selectHotelParams.toDate)
|
||||
const isRedemptionAvailability = redemption
|
||||
? hotels.some(
|
||||
(hotel) => hotel.availability.productType?.redemptions?.length
|
||||
)
|
||||
: false
|
||||
|
||||
const isBookingCodeRateAvailable = bookingCode
|
||||
? hotels?.some(
|
||||
@@ -97,7 +102,9 @@ export async function SelectHotelMapContainer({
|
||||
hotels?.[0]?.hotel.address.city,
|
||||
selectHotelParams.city,
|
||||
bookingCode,
|
||||
isBookingCodeRateAvailable
|
||||
isBookingCodeRateAvailable,
|
||||
redemption,
|
||||
isRedemptionAvailability
|
||||
)
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user