fix: refacotr away optional pricing

This commit is contained in:
Christel Westerberg
2024-11-12 08:57:45 +01:00
parent 5e2d2abd17
commit 32d12bae58
5 changed files with 25 additions and 26 deletions

View File

@@ -55,12 +55,12 @@ export default async function SummaryPage({
}
: {
local: {
price: availability.publicRate?.localPrice.pricePerStay,
currency: availability.publicRate?.localPrice.currency,
price: availability.publicRate.localPrice.pricePerStay,
currency: availability.publicRate.localPrice.currency,
},
euro: {
price: availability.publicRate?.requestedPrice.pricePerStay,
currency: availability.publicRate?.requestedPrice.currency,
price: availability.publicRate.requestedPrice.pricePerStay,
currency: availability.publicRate.requestedPrice.currency,
},
}