diff --git a/components/HotelReservation/EnterDetails/Payment/PaymentClient.tsx b/components/HotelReservation/EnterDetails/Payment/PaymentClient.tsx index 635f7c775..dd244b473 100644 --- a/components/HotelReservation/EnterDetails/Payment/PaymentClient.tsx +++ b/components/HotelReservation/EnterDetails/Payment/PaymentClient.tsx @@ -217,7 +217,9 @@ export default function PaymentClient({ bedType: bedTypeMap[parseInt(child.bed.toString())], })), rateCode: - user || join || membershipNo ? room.counterRateCode : room.rateCode, + (user || join || membershipNo) && room.counterRateCode + ? room.counterRateCode + : room.rateCode, roomTypeCode: bedType!.roomTypeCode, // A selection has been made in order to get to this step. guest: { firstName, diff --git a/components/HotelReservation/EnterDetails/Summary/UI/index.tsx b/components/HotelReservation/EnterDetails/Summary/UI/index.tsx index 5a84dde6e..90dc0775d 100644 --- a/components/HotelReservation/EnterDetails/Summary/UI/index.tsx +++ b/components/HotelReservation/EnterDetails/Summary/UI/index.tsx @@ -67,7 +67,7 @@ export default function SummaryUI({ } : null - const showMemberPrice = !!(isMember || join || membershipNo) + const showMemberPrice = !!(isMember || join || membershipNo) && memberPrice const diff = dt(booking.toDate).diff(booking.fromDate, "days") diff --git a/types/components/hotelReservation/enterDetails/bookingData.ts b/types/components/hotelReservation/enterDetails/bookingData.ts index c78b5c90e..12760e765 100644 --- a/types/components/hotelReservation/enterDetails/bookingData.ts +++ b/types/components/hotelReservation/enterDetails/bookingData.ts @@ -5,7 +5,7 @@ interface Room { adults: number roomTypeCode: string rateCode: string - counterRateCode: string + counterRateCode?: string children?: Child[] packages?: RoomPackageCodeEnum[] }