Including bedtype

This commit is contained in:
Linus Flood
2024-12-16 08:37:18 +01:00
parent fd91b96c99
commit 276253057c

View File

@@ -19,7 +19,7 @@ export default async function BookingConfirmation({
}: BookingConfirmationProps) {
const bookingConfirmation = await bookingConfirmationPromise
const { booking, hotel } = bookingConfirmation
const { booking, hotel, room } = bookingConfirmation
const arrivalDate = new Date(booking.checkInDate)
const departureDate = new Date(booking.checkOutDate)
@@ -61,7 +61,7 @@ export default async function BookingConfirmation({
totalPrice: booking.totalPrice,
//specialRoomType: getSpecialRoomType(booking.packages), TODO: Add
//roomTypeName: booking.roomTypeCode ?? undefined, TODO: Do we get the name?
//bedType: bedType?.description, TODO: Can we get bedType?
bedType: room?.bedType.name,
roomTypeCode: booking.roomTypeCode ?? undefined,
roomPrice: booking.roomPrice,
bnr: booking.confirmationNumber ?? undefined,