diff --git a/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/NotCancelled/ManageStay/Actions/GuaranteeLateArrival/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/NotCancelled/ManageStay/Actions/GuaranteeLateArrival/index.tsx index 011585fe2..1c9aa33b1 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/NotCancelled/ManageStay/Actions/GuaranteeLateArrival/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/NotCancelled/ManageStay/Actions/GuaranteeLateArrival/index.tsx @@ -16,16 +16,22 @@ import styles from "./guarantee.module.css" export default function GuaranteeLateArrival() { const intl = useIntl() - const { checkInDate, checkInTime, guaranteeInfo, isCancelled } = + const { checkInDate, checkInTime, guaranteeInfo, isCancelled, priceType } = useMyStayStore((state) => ({ checkInDate: state.bookedRoom.checkInDate, checkInTime: state.hotel.hotelFacts.checkin.checkInTime, guaranteeInfo: state.bookedRoom.guaranteeInfo, isCancelled: state.bookedRoom.isCancelled, + priceType: state.bookedRoom.priceType, })) + const isRewardNight = priceType === "points" + const guaranteeable = - !guaranteeInfo && !isCancelled && !dateHasPassed(checkInDate, checkInTime) + !guaranteeInfo && + !isCancelled && + !dateHasPassed(checkInDate, checkInTime) && + !isRewardNight if (!guaranteeable) { return null diff --git a/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/GuaranteeInfo/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/GuaranteeInfo/index.tsx index f260c0756..72f40f8c2 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/GuaranteeInfo/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/GuaranteeInfo/index.tsx @@ -10,12 +10,16 @@ import styles from "./guaranteeInfo.module.css" export default function GuaranteeInfo() { const intl = useIntl() - const { allRoomsAreCancelled, guaranteeInfo } = useMyStayStore((state) => ({ - allRoomsAreCancelled: state.allRoomsAreCancelled, - guaranteeInfo: state.bookedRoom.guaranteeInfo, - })) + const { allRoomsAreCancelled, guaranteeInfo, priceType } = useMyStayStore( + (state) => ({ + allRoomsAreCancelled: state.allRoomsAreCancelled, + guaranteeInfo: state.bookedRoom.guaranteeInfo, + priceType: state.bookedRoom.priceType, + }) + ) - if (allRoomsAreCancelled || !guaranteeInfo) { + const isRewardNight = priceType === "points" + if (allRoomsAreCancelled || (!guaranteeInfo && !isRewardNight)) { return null }