From 0d84d4374ccb23fe8c7abecb21e7e11b65d2778c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Fri, 9 May 2025 14:36:25 +0000 Subject: [PATCH] Merged in fix/SW-2180-room-title (pull request #2028) Fix(SW-2180): Hide empty brackets next to room title * fix(SW-2180): hide text when no value Approved-by: Christian Andolf --- .../HotelReservation/EnterDetails/SelectedRoom/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/SelectedRoom/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/SelectedRoom/index.tsx index 22056bf57..6ac2ff994 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/SelectedRoom/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/SelectedRoom/index.tsx @@ -69,8 +69,8 @@ export default function SelectedRoom() { { roomType: room.roomType, rateDescription: room.cancellationText, - rate: (str) => { - return {str} + rate: ([str]) => { + return str ? {str} : null }, } )}