fix: phone number input field is missing from mail (#17035)

Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
Anik Dhabal BabuandUdit Takkar authored and GitHub committed 2024-10-11 11:17:18 +00:00
1 parent 5718cc5e17
commit 0b0fee3985
1 file changed
+4 -1
@@ -1,6 +1,6 @@
import type z from "zod";
import { TITLE_FIELD } from "@calcom/features/bookings/lib/SystemField";
import { TITLE_FIELD, SMS_REMINDER_NUMBER_FIELD } from "@calcom/features/bookings/lib/SystemField";
import type { bookingResponse } from "@calcom/features/bookings/lib/getBookingResponsesSchema";
import type { CalendarEvent } from "@calcom/types/Calendar";
@@ -17,6 +17,9 @@ export default function getLabelValueMapFromResponses(
if (!!responses?.[TITLE_FIELD] && !isDynamicEvent) {
userFieldsResponses[TITLE_FIELD] = responses[TITLE_FIELD];
}
if (!!responses?.[SMS_REMINDER_NUMBER_FIELD] && !isDynamicEvent) {
userFieldsResponses[SMS_REMINDER_NUMBER_FIELD] = responses[SMS_REMINDER_NUMBER_FIELD];
}
for (const [, value] of Object.entries(userFieldsResponses)) {
if (!value.label || (!isOrganizer && value.isHidden)) {