diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx index 32fe4883f..cddf182db 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx @@ -30,17 +30,17 @@ export default async function SelectRatePage({ }: PageArgs) { setLang(params.lang) - // const locations = await getLocations() - // if (!locations || "error" in locations) { - // return null - // } - // const hotel = locations.data.find( - // (location) => - // "operaId" in location && location.operaId == searchParams.hotel - // ) - // if (!hotel) { - // return notFound() - // } + const locations = await getLocations() + if (!locations || "error" in locations) { + return null + } + const hotel = locations.data.find( + (location) => + "operaId" in location && location.operaId == searchParams.hotel + ) + if (!hotel) { + return notFound() + } const selectRoomParams = new URLSearchParams(searchParams) const selectRoomParamsObject = getHotelReservationQueryParams(selectRoomParams)