fix: accessing hotel in hotel reservation

This commit is contained in:
Chuma McPhoy
2024-07-10 19:14:51 +02:00
parent 1573722843
commit 48b7c79953
3 changed files with 5 additions and 5 deletions

View File

@@ -9,12 +9,12 @@ import { LangParams, PageArgs } from "@/types/params"
export default async function SelectHotelPage({
params,
}: PageArgs<LangParams>) {
const hotel = await serverClient().hotel.getHotel({
const { attributes } = await serverClient().hotel.getHotel({
hotelId: "d98c7ab1-ebaa-4102-b351-758daf1ddf55",
language: params.lang,
})
const hotels = [hotel]
const hotels = [attributes]
return (
<main>