diff --git a/apps/scandic-web/components/HotelReservation/MyStay/PriceDetails/mapToPrice.ts b/apps/scandic-web/components/HotelReservation/MyStay/PriceDetails/mapToPrice.ts index 924d985e7..44e6506b3 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/PriceDetails/mapToPrice.ts +++ b/apps/scandic-web/components/HotelReservation/MyStay/PriceDetails/mapToPrice.ts @@ -70,7 +70,7 @@ export function calculateTotalPrice(rooms: Room[], currency: CurrencyEnum) { case PriceTypeEnum.points: { total.local.currency = CurrencyEnum.POINTS - total.local.price = total.local.price + room.roomPoints + total.local.price = total.local.price + room.totalPoints } break case PriceTypeEnum.voucher: diff --git a/apps/scandic-web/components/HotelReservation/MyStay/PriceType/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/PriceType/index.tsx index 49c8f7d5f..053395b22 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/PriceType/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/PriceType/index.tsx @@ -14,7 +14,7 @@ interface PriceTypeProps | "cheques" | "currencyCode" | "rateDefinition" - | "roomPoints" + | "totalPoints" | "totalPrice" | "vouchers" > { @@ -30,7 +30,7 @@ export default function PriceType({ currencyCode, priceType, rateDefinition, - roomPoints, + totalPoints, totalPrice, vouchers, }: PriceTypeProps) { @@ -56,7 +56,7 @@ export default function PriceType({ return ( diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/MultiRoom/Room.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/MultiRoom/Room.tsx index 98a88ebbf..8652ead26 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/MultiRoom/Room.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/MultiRoom/Room.tsx @@ -46,7 +46,7 @@ export default function Room({ booking, roomNr, user }: RoomProps) { rateDefinition, room, roomName, - roomPoints, + totalPoints, isCancelled, priceType, vouchers, @@ -279,7 +279,7 @@ export default function Room({ booking, roomNr, user }: RoomProps) { currencyCode={currencyCode} priceType={priceType} rateDefinition={rateDefinition} - roomPoints={roomPoints} + totalPoints={totalPoints} totalPrice={totalPrice} vouchers={vouchers} /> diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/SingleRoom/BookingInformation/PriceDetails/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/SingleRoom/BookingInformation/PriceDetails/index.tsx index f6284ca0b..bb9a11536 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/SingleRoom/BookingInformation/PriceDetails/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/SingleRoom/BookingInformation/PriceDetails/index.tsx @@ -21,7 +21,7 @@ export default function PriceDetails() { packages: state.bookedRoom.packages, priceType: state.bookedRoom.priceType, rateDefinition: state.bookedRoom.rateDefinition, - roomPoints: state.bookedRoom.roomPoints, + totalPoints: state.bookedRoom.totalPoints, totalPrice: state.bookedRoom.totalPrice, vouchers: state.bookedRoom.vouchers, })) diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx index b69df4c48..157519f49 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx @@ -32,7 +32,7 @@ export default function TotalPrice() { currencyCode={bookedRoom.currencyCode} priceType={bookedRoom.priceType} rateDefinition={bookedRoom.rateDefinition} - roomPoints={totalPoints} + totalPoints={totalPoints} totalPrice={totalPrice} vouchers={bookedRoom.vouchers} /> diff --git a/apps/scandic-web/components/HotelReservation/MyStay/utils/mapRoomDetails.ts b/apps/scandic-web/components/HotelReservation/MyStay/utils/mapRoomDetails.ts index 480ef8a3f..ff5e24756 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/utils/mapRoomDetails.ts +++ b/apps/scandic-web/components/HotelReservation/MyStay/utils/mapRoomDetails.ts @@ -91,7 +91,7 @@ export function mapRoomDetails({ const priceType = getPriceType( booking.cheques, - booking.roomPoints, + booking.totalPoints, booking.vouchers ) diff --git a/apps/scandic-web/components/SidePeeks/BookedRoomSidePeek/index.tsx b/apps/scandic-web/components/SidePeeks/BookedRoomSidePeek/index.tsx index b357d44b7..7efea2934 100644 --- a/apps/scandic-web/components/SidePeeks/BookedRoomSidePeek/index.tsx +++ b/apps/scandic-web/components/SidePeeks/BookedRoomSidePeek/index.tsx @@ -50,7 +50,7 @@ export type Room = Pick< | "currencyCode" | "guest" | "rateDefinition" - | "roomPoints" + | "totalPoints" | "totalPrice" | "vouchers" > & { @@ -98,7 +98,7 @@ export default function BookedRoomSidePeek({ priceType, rateDefinition, roomNumber, - roomPoints, + totalPoints, terms, totalPrice, vouchers, @@ -390,7 +390,7 @@ export default function BookedRoomSidePeek({ priceType={priceType} currencyCode={currencyCode} rateDefinition={rateDefinition} - roomPoints={roomPoints} + totalPoints={totalPoints} totalPrice={totalRoomPrice} vouchers={vouchers} />