From 21b0306fd2e2860216065bd2f588d313d22a131c Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Thu, 5 Dec 2024 10:38:00 +0100 Subject: [PATCH] fix(SW-1111) added member price --- .../HotelCardDialog/hotelCardDialog.module.css | 3 +-- components/HotelReservation/HotelCardDialogListing/utils.ts | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/HotelReservation/HotelCardDialog/hotelCardDialog.module.css b/components/HotelReservation/HotelCardDialog/hotelCardDialog.module.css index 7d607d3ad..30cd03385 100644 --- a/components/HotelReservation/HotelCardDialog/hotelCardDialog.module.css +++ b/components/HotelReservation/HotelCardDialog/hotelCardDialog.module.css @@ -106,8 +106,7 @@ } @media (min-width: 768px) { - .facilities, - .memberPrice { + .facilities { display: none; } .dialog { diff --git a/components/HotelReservation/HotelCardDialogListing/utils.ts b/components/HotelReservation/HotelCardDialogListing/utils.ts index 1a0e05ad8..bfe491a22 100644 --- a/components/HotelReservation/HotelCardDialogListing/utils.ts +++ b/components/HotelReservation/HotelCardDialogListing/utils.ts @@ -12,7 +12,10 @@ export function getHotelPins(hotels: HotelData[]): HotelPin[] { name: hotel.hotelData.name, publicPrice: hotel.price?.public?.localPrice.pricePerNight ?? null, memberPrice: hotel.price?.member?.localPrice.pricePerNight ?? null, - currency: hotel.price?.public?.localPrice.currency || null, + currency: + hotel.price?.public?.localPrice.currency || + hotel.price?.member?.localPrice.currency || + null, images: [ hotel.hotelData.hotelContent.images, ...(hotel.hotelData.gallery?.heroImages ?? []),