Including bedtype
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user