fix: cache hotel response

This commit is contained in:
Simon Emanuelsson
2024-12-17 16:18:46 +01:00
parent 13a164242f
commit 1deab000bd
38 changed files with 339 additions and 246 deletions

View File

@@ -27,8 +27,8 @@ export default async function BookingWidgetPage({
})
const hotelPageParams = {
hotel: hotelData?.data?.id || "",
city: hotelData?.data?.attributes?.cityName || "",
hotel: hotelData?.hotel?.id || "",
city: hotelData?.hotel?.cityName || "",
}
return <BookingWidget bookingWidgetSearchParams={hotelPageParams} />