Tracking on select hotel and select rate pages

This commit is contained in:
Linus Flood
2024-11-19 06:58:06 +01:00
parent 4341f4479c
commit 33fdbb0034
3 changed files with 94 additions and 15 deletions

View File

@@ -97,8 +97,8 @@ export default async function SelectHotelPage({
leadTime: differenceInCalendarDays(arrivalDate, new Date()),
searchType: "destination",
bookingTypeofDay: isWeekend(arrivalDate) ? "weekend" : "weekday",
country: hotels[0].hotelData.address.country,
region: hotels[0].hotelData.address.city,
country: hotels?.[0].hotelData.address.country,
region: hotels?.[0].hotelData.address.city,
}
return (