feat: use correct key for searchParams check
This commit is contained in:
committed by
Simon.Emanuelsson
parent
59a9c72724
commit
1a28bcdc4c
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user