Merged in fix/BOOK-459-tracking-search (pull request #2984)

fix(BOOK-459): update searchTerm to city or hotelname

* fix(BOOK-459): update searchTerm to city or hotelname


Approved-by: Erik Tiekstra
This commit is contained in:
Bianca Widstam
2025-10-22 14:34:59 +00:00
parent acdc3dcec1
commit 76c353058b
17 changed files with 40 additions and 35 deletions

View File

@@ -98,7 +98,7 @@ export async function AlternativeHotelsMapPage({
departureDate,
rooms: booking.rooms,
hotelsResult: hotels.length,
searchTerm: isAlternativeFor ? booking.hotelId : cityIdentifier,
searchTerm: isAlternativeFor ? isAlternativeFor.name : cityIdentifier,
country: hotels?.[0]?.hotel.address.country,
hotelCity: hotels?.[0]?.hotel.address.city,
bookingCode: booking.bookingCode,

View File

@@ -102,7 +102,7 @@ export async function AlternativeHotelsPage({
rooms: booking.rooms,
hotelsResult: hotels?.length ?? 0,
searchTerm: searchDetails.hotel
? booking.hotelId
? searchDetails.hotel.name
: searchDetails.cityIdentifier,
country: hotels?.[0]?.hotel.address.country,
hotelCity: hotels?.[0]?.hotel.address.city,

View File

@@ -128,6 +128,7 @@ export async function EnterDetailsPage({
rooms={rooms}
searchParamsStr={selectRoomParams.toString()}
user={user}
hotelName={hotel.name}
vat={hotel.vat}
roomCategories={hotelData.roomCategories}
>

View File

@@ -99,7 +99,7 @@ export async function SelectHotelMapPage({
departureDate,
rooms: booking.rooms,
hotelsResult: hotels.length,
searchTerm: isAlternativeFor ? booking.hotelId : cityIdentifier,
searchTerm: isAlternativeFor ? isAlternativeFor.name : cityIdentifier,
country: hotels?.[0]?.hotel.address.country,
hotelCity: hotels?.[0]?.hotel.address.city,
bookingCode: booking.bookingCode,