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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user