fix: summarize prices
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user