fix: accessing hotel in hotel reservation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user