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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user