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 dc5c7a6b5..29c602779 100644
--- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx
+++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx
@@ -84,25 +84,33 @@ export default async function SelectRatePage({
getProfileSafely(),
])
- if (!roomsAvailability) {
- return "No rooms found" // TODO: Add a proper error message
- }
-
if (!hotelData) {
return "No hotel data found" // TODO: Add a proper error message
}
const roomCategories = hotelData?.included
+ const noRoomsAvailable = roomsAvailability?.roomConfigurations.reduce(
+ (acc, room) => {
+ return acc && room.status === "NotAvailable"
+ },
+ true
+ )
+
return (
<>
-