feat: trigger loading states immediately upon navigation
This commit is contained in:
@@ -23,9 +23,9 @@ export function getTracking(
|
||||
hotelCity: string | undefined,
|
||||
paramCity: string | undefined,
|
||||
bookingCode?: string,
|
||||
isBookingCodeRateAvailable?: string,
|
||||
isBookingCodeRateAvailable = false,
|
||||
isRedemption?: boolean,
|
||||
isRedemptionAvailable?: boolean
|
||||
isRedemptionAvailable = false
|
||||
) {
|
||||
const pageTrackingData: TrackingSDKPageData = {
|
||||
channel: TrackingChannelEnum["hotelreservation"],
|
||||
@@ -63,10 +63,10 @@ export function getTracking(
|
||||
searchType: "destination",
|
||||
bookingCode: bookingCode ?? "n/a",
|
||||
bookingCodeAvailability: bookingCode
|
||||
? isBookingCodeRateAvailable
|
||||
? isBookingCodeRateAvailable.toString()
|
||||
: undefined,
|
||||
rewardNight: isRedemption ? "yes" : "no",
|
||||
rewardNightAvailability: isRedemptionAvailable ? "true" : "false",
|
||||
rewardNightAvailability: isRedemptionAvailable.toString(),
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user