fix: always use totalPrice to display roomCharge

This commit is contained in:
Simon Emanuelsson
2025-04-16 12:41:37 +02:00
committed by Simon.Emanuelsson
parent edc4f0c016
commit b5deb84b33
7 changed files with 209 additions and 82 deletions

View File

@@ -30,6 +30,8 @@ export default function PriceDetails() {
.startOf("day")
.diff(dt(fromDate).startOf("day"), "days")
console.log({ rooms })
const totalPrice = rooms.reduce<Price>(
(total, room) => {
if (!room) {