fix: location input value in custom event name (#20619)

* fix: location input value in custom event name

* Update EventAdvancedTab.tsx
This commit is contained in:
Anik Dhabal Babu
2025-04-12 08:22:39 +05:30
committed by GitHub
parent b17b5a169f
commit 027cad2cfd
+5 -1
View File
@@ -90,7 +90,11 @@ export function getEventName(eventNameObj: EventNameObjectType, forAttendeeView
if (typeof bookingFieldValue === "object") {
if ("value" in bookingFieldValue) {
fieldValue = bookingFieldValue.value?.toString();
const valueAsString = bookingFieldValue.value?.toString();
fieldValue =
variable === "location"
? guessEventLocationType(valueAsString)?.label || valueAsString
: valueAsString;
} else if (variable === "name" && "firstName" in bookingFieldValue) {
const lastName = "lastName" in bookingFieldValue ? bookingFieldValue.lastName : "";
fieldValue = `${bookingFieldValue.firstName} ${lastName}`.trim();