fix: always use totalPrice to display roomCharge
This commit is contained in:
committed by
Simon.Emanuelsson
parent
edc4f0c016
commit
b5deb84b33
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user