Scheduling infrastructure for absolutely everyone.
fix: Booking questions order correction in confirmation email (#18192)
Venkata Rohan Kambhampatida2c57c30212
diff --git a/apps/web/modules/bookings/views/bookings-single-view.tsx b/apps/web/modules/bookings/views/bookings-single-view.tsxindex 0f7662717b5..22b5b654293 100644--- a/apps/web/modules/bookings/views/bookings-single-view.tsx+++ b/apps/web/modules/bookings/views/bookings-single-view.tsx@@ -649,13 +649,17 @@ export default function Success(props: PageProps) {)}</div><div className="text-bookingdark dark:border-darkgray-200 mt-8 text-left dark:text-gray-300">- {Object.entries(bookingInfo.responses).map(([name, response]) => {- const field = eventType.bookingFields.find((field) => field.name === name);+ {eventType.bookingFields.map((field) => {+ if (!field) return null;++ if (!bookingInfo.responses[field.name]) return null;++ const response = bookingInfo.responses[field.name];// We show location in the "where" section// We show Booker Name, Emails and guests in Who section// We show notes in additional notes section// We show rescheduleReason at the top- if (!field) return null;+const isSystemField = SystemField.safeParse(field.name);// SMS_REMINDER_NUMBER_FIELD is a system field but doesn't have a dedicated place in the UI. So, it would be shown through the following responses list// TITLE is also an identifier for booking question "What is this meeting about?"