From 830f8bf2610aeb621b8f4f5e09b87c0d5e4239e7 Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Mon, 2 Dec 2024 12:30:21 +0100 Subject: [PATCH] fix: SW-691 SW-1006 Removed rooms left label when no availability --- .../SelectRate/RoomSelection/RoomCard/index.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/components/HotelReservation/SelectRate/RoomSelection/RoomCard/index.tsx b/components/HotelReservation/SelectRate/RoomSelection/RoomCard/index.tsx index 0499bd861..a5b21e10d 100644 --- a/components/HotelReservation/SelectRate/RoomSelection/RoomCard/index.tsx +++ b/components/HotelReservation/SelectRate/RoomSelection/RoomCard/index.tsx @@ -117,14 +117,15 @@ export default function RoomCard({
- {roomConfiguration.roomsLeft < 5 && ( - - {`${roomConfiguration.roomsLeft} ${intl.formatMessage({ id: "Left" })}`} - - )} + {roomConfiguration.roomsLeft > 0 && + roomConfiguration.roomsLeft < 5 && ( + + {`${roomConfiguration.roomsLeft} ${intl.formatMessage({ id: "Left" })}`} + + )} {roomConfiguration.features .filter((feature) => selectedPackages.includes(feature.code)) .map((feature) => (