diff --git a/app/[lang]/(live)/(public)/hotelreservation/select-hotel/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/select-hotel/page.tsx
index 56302d36b..24b53a6b9 100644
--- a/app/[lang]/(live)/(public)/hotelreservation/select-hotel/page.tsx
+++ b/app/[lang]/(live)/(public)/hotelreservation/select-hotel/page.tsx
@@ -11,6 +11,7 @@ import { setLang } from "@/i18n/serverContext"
import styles from "./page.module.css"
+import { AvailabilityEnum } from "@/types/components/hotelReservation/selectHotel/selectHotel"
import { LangParams, PageArgs } from "@/types/params"
export default async function SelectHotelPage({
@@ -35,10 +36,12 @@ export default async function SelectHotelPage({
const { availability } = availabilityResponse
- const filterAvailability = availability.data
- .filter((hotels) => hotels.attributes.status === "Available")
+ const availableHotels = availability.data
+ .filter((hotels) => hotels.attributes.status === AvailabilityEnum.Available)
.flatMap((hotels) => hotels.attributes)
+ console.log(availableHotels)
+
return (
@@ -56,8 +59,8 @@ export default async function SelectHotelPage({
- {filterAvailability.length ? (
- filterAvailability.map((hotel) => (
+ {availableHotels.length ? (
+ availableHotels.map((hotel) => (