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
This commit is contained in:
Matilda Landström
2025-05-13 13:09:54 +00:00
parent ccda1d6cad
commit ccaf705015

View File

@@ -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",