Skip to content

Scheduling infrastructure for absolutely everyone.

Fixes missing locations (#1257)

Alex van Andel7e6628e3ac0a
diff --git a/components/booking/pages/BookingPage.tsx b/components/booking/pages/BookingPage.tsx
index b7239f472e2..92cc4ba5d1e 100644
--- a/components/booking/pages/BookingPage.tsx
+++ b/components/booking/pages/BookingPage.tsx
@@ -208,7 +208,7 @@ const BookingPage = (props: BookingPageProps) => {
language: i18n.language,
rescheduleUid,
user: router.query.user,
- location: getLocationValue(booking),
+ location: getLocationValue(booking.locationType ? booking : { locationType: selectedLocation }),
metadata,
customInputs: Object.keys(booking.customInputs || {}).map((inputId) => ({
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -278,7 +278,7 @@ const BookingPage = (props: BookingPageProps) => {
{selectedLocation === LocationType.InPerson && (
<p className="mb-2 text-gray-500">
<LocationMarkerIcon className="inline-block w-4 h-4 mr-1 -mt-1" />
- {locationInfo(selectedLocation).address}
+ {getLocationValue({ locationType: selectedLocation })}
</p>
)}
<p className="mb-4 text-green-500">