From 7e6628e3ac0a34cc4163e9165a8f322ff80203ee Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Mon, 6 Dec 2021 12:22:35 +0100 Subject: [PATCH] Fixes missing locations (#1257) --- components/booking/pages/BookingPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/booking/pages/BookingPage.tsx b/components/booking/pages/BookingPage.tsx index b7239f47..92cc4ba5 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 && (

- {locationInfo(selectedLocation).address} + {getLocationValue({ locationType: selectedLocation })}

)}