Merged in fix/SW-2838-in-select-hotel-lang-switch- (pull request #2261)

fix: SW-2838 Use of city identifier instead of city name

* fix: SW-2838 Updated selection to city identifier instead of city name


Approved-by: Christian Andolf
Approved-by: Linus Flood
This commit is contained in:
Hrishikesh Vaipurkar
2025-06-03 07:58:00 +00:00
parent 3d80f9fecb
commit f9e838e77a
7 changed files with 14 additions and 3 deletions

View File

@@ -66,7 +66,9 @@ export async function getHotelSearchDetails(
const city = cityName
? (locations.find(
(location) => location.name.toLowerCase() === cityName.toLowerCase()
(location) =>
"cityIdentifier" in location &&
location.cityIdentifier?.toLowerCase() === cityName.toLowerCase()
) ?? null)
: null