feat: use correct key for searchParams check

This commit is contained in:
Simon Emanuelsson
2025-05-14 12:57:11 +02:00
committed by Simon.Emanuelsson
parent 59a9c72724
commit 1a28bcdc4c
4 changed files with 16 additions and 12 deletions

View File

@@ -114,11 +114,6 @@ export default async function MyStay({
const linkedReservationsPromise = getLinkedReservations(booking.refId)
const ancillariesInput = {
fromDate,
hotelId: hotel.operaId,
toDate,
}
const packagesInput = {
adults: booking.adults,
children: booking.childrenAges.length,
@@ -147,9 +142,6 @@ export default async function MyStay({
if (user) {
void getSavedPaymentCardsSafely(savedPaymentCardsInput)
}
if (booking.showAncillaries) {
void getAncillaryPackages(ancillariesInput)
}
let breakfastPackages = null
if (shouldFetchBreakfastPackages) {
@@ -163,7 +155,11 @@ export default async function MyStay({
}
let ancillaryPackagesPromise = null
if (booking.showAncillaries) {
ancillaryPackagesPromise = getAncillaryPackages(ancillariesInput)
ancillaryPackagesPromise = getAncillaryPackages({
fromDate,
hotelId: hotel.operaId,
toDate,
})
}
const imageSrc =