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
This commit is contained in:
Bianca Widstam
2025-05-13 10:37:19 +00:00
parent b7c78a53b5
commit 4aa069b01c

View File

@@ -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)) {