fix: summarize prices

This commit is contained in:
Christel Westerberg
2024-11-05 10:43:05 +01:00
parent e8e23a2113
commit 8bd43aebf8
2 changed files with 22 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ export default async function SummaryPage({
return null
}
const prices = user
const prices = user && availability.memberRate
? {
local: {
price: availability.memberRate?.localPrice.pricePerStay,
@@ -61,7 +61,7 @@ export default async function SummaryPage({
return (
<Summary
isMember={!!user}
showMemberPrice={!!(user && availability.memberRate)}
room={{
roomType: availability.selectedRoom.roomType,
localPrice: prices.local,