feat: block all entries to enter details that miss the required params
This commit is contained in:
@@ -19,11 +19,6 @@ export default async function SummaryPage({
|
||||
const { hotel, adults, children, roomTypeCode, rateCode, fromDate, toDate } =
|
||||
getQueryParamsForEnterDetails(selectRoomParams)
|
||||
|
||||
if (!roomTypeCode || !rateCode) {
|
||||
console.log("No roomTypeCode or rateCode")
|
||||
return notFound()
|
||||
}
|
||||
|
||||
const availability = await getSelectedRoomAvailability({
|
||||
hotelId: parseInt(hotel),
|
||||
adults,
|
||||
|
||||
Reference in New Issue
Block a user