diff --git a/components/HotelReservation/SelectHotel/index.tsx b/components/HotelReservation/SelectHotel/index.tsx index 566f554d9..3f16d3353 100644 --- a/components/HotelReservation/SelectHotel/index.tsx +++ b/components/HotelReservation/SelectHotel/index.tsx @@ -71,10 +71,9 @@ export default async function SelectHotel({ const isCityWithCountry = (city: any): city is { country: string } => "country" in city - const validHotels = - hotels?.filter((hotel): hotel is HotelData => hotel !== null) || [] - + hotels?.filter((hotel): hotel is HotelData => hotel?.hotelData !== null) || + [] const filterList = getFiltersFromHotels(validHotels) const searchParams = convertObjToSearchParams(selectHotelParams)