From 4aa069b01c6bb96621533e69ba06761ad9baea8e Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Tue, 13 May 2025 10:37:19 +0000 Subject: [PATCH] Merged in fix/SW-2728-update-totalpoints-my-stay (pull request #2074) fix(SW-2728): update totalpoints in my stay * fix(SW-2728): update totalpoints in my stay Approved-by: Simon.Emanuelsson --- .../components/HotelReservation/MyStay/Rooms/TotalPrice.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx index 273f006ca..b69df4c48 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Rooms/TotalPrice.tsx @@ -16,7 +16,7 @@ export default function TotalPrice() { ) const totalCheques = rooms.reduce((total, room) => total + room.cheques, 0) - const totalPoints = rooms.reduce((total, room) => total + room.roomPoints, 0) + const totalPoints = rooms.reduce((total, room) => total + room.totalPoints, 0) let totalPrice = rooms.reduce((total, room) => total + room.totalPrice, 0) if (rooms.some((room) => room.vouchers)) {