diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx index 52f298ae6..8a5b8ced3 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.tsx @@ -117,12 +117,12 @@ export default async function DetailsPage({ const { rateDefinition, rateDefinitionMember } = firstRoom.roomRate if (user && rateDefinitionMember) { - const rateCode = selectRoomParams.get("rateCode") + const rateCode = selectRoomParams.get("room[0].ratecode") if (rateDefinitionMember.rateCode !== rateCode) { booking.rooms[0].rateCode = rateDefinitionMember.rateCode - selectRoomParams.set("ratecode", rateDefinitionMember.rateCode) + selectRoomParams.set("room[0].ratecode", rateDefinitionMember.rateCode) booking.rooms[0].counterRateCode = rateDefinition.rateCode - selectRoomParams.set("counterratecode", rateDefinition.rateCode) + selectRoomParams.set("room[0].counterratecode", rateDefinition.rateCode) } } diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/my-stay/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/my-stay/page.tsx index a738ebf02..b05fa45bb 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/my-stay/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/my-stay/page.tsx @@ -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 = diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/SingleRoom/Details/Row/row.module.css b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/SingleRoom/Details/Row/row.module.css index 6de33979c..b1d1f9af1 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/SingleRoom/Details/Row/row.module.css +++ b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/SingleRoom/Details/Row/row.module.css @@ -35,4 +35,8 @@ height: 20px; width: 20px; } + + .content { + text-align: right; + } } diff --git a/apps/scandic-web/stores/select-rate/index.ts b/apps/scandic-web/stores/select-rate/index.ts index 5198ea1d0..3fe733a17 100644 --- a/apps/scandic-web/stores/select-rate/index.ts +++ b/apps/scandic-web/stores/select-rate/index.ts @@ -388,6 +388,10 @@ export function createRatesStore({ `room[${idx}].counterratecode`, counterratecode ) + } else { + if (searchParams.has(`room[${idx}].counterratecode`)) { + searchParams.delete(`room[${idx}].counterratecode`) + } } const rateCode = isMemberRate