From ccaf705015f553f72a2fb2e331192dce14c7f7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 13 May 2025 13:09:54 +0000 Subject: [PATCH] Merged in feat/SW-2505-alternative-hotels-link (pull request #2080) fix(SW-2505): alternative hotels link * fix(SW-2505): handle no chosen room Approved-by: Bianca Widstam --- .../RoomsContainer/Rooms/NoAvailabilityAlert/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scandic-web/components/HotelReservation/SelectRate/RoomsContainer/Rooms/NoAvailabilityAlert/index.tsx b/apps/scandic-web/components/HotelReservation/SelectRate/RoomsContainer/Rooms/NoAvailabilityAlert/index.tsx index 501b8d78d..54658b1c2 100644 --- a/apps/scandic-web/components/HotelReservation/SelectRate/RoomsContainer/Rooms/NoAvailabilityAlert/index.tsx +++ b/apps/scandic-web/components/HotelReservation/SelectRate/RoomsContainer/Rooms/NoAvailabilityAlert/index.tsx @@ -29,7 +29,7 @@ export default function NoAvailabilityAlert() { ) const alertLink = - selectedRooms[activeRoom].selectedPackages.length === 0 + activeRoom !== -1 && selectedRooms[activeRoom].selectedPackages.length === 0 ? { title: intl.formatMessage({ defaultMessage: "See alternative hotels",