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:
@@ -118,6 +118,11 @@ export default async function SelectHotel({
|
||||
]
|
||||
|
||||
const isAllUnavailable = !hotels.length
|
||||
const isRedemptionAvailability = redemption
|
||||
? hotels.some(
|
||||
(hotel) => hotel.availability.productType?.redemptions?.length
|
||||
)
|
||||
: false
|
||||
|
||||
const suspenseKey = stringify(searchParams)
|
||||
|
||||
@@ -155,7 +160,9 @@ export default async function SelectHotel({
|
||||
hotels?.[0]?.hotel.address.city,
|
||||
selectHotelParams.city,
|
||||
bookingCode,
|
||||
isBookingCodeRateAvailable ? "true" : "false"
|
||||
isBookingCodeRateAvailable ? "true" : "false",
|
||||
redemption,
|
||||
isRedemptionAvailability
|
||||
)
|
||||
|
||||
// Special rates (corporate cheque, voucher and reward nights) will not have regular rate hotels availability
|
||||
|
||||
Reference in New Issue
Block a user