Fix Email and phone optional
This commit is contained in:
@@ -95,8 +95,9 @@ const EventDetail = () => {
|
|||||||
alert('Invalid registration link. Please contact the organizers.');
|
alert('Invalid registration link. Please contact the organizers.');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Fallback: Show alert if no link is configured
|
// Fallback: Show alert if no link is configured. Don't require email.
|
||||||
alert('Registration link not configured for this event. Please contact the organizers at ' + eventData.email);
|
const contactInfo = eventData.email && eventData.email.trim() !== '' ? (' at ' + eventData.email) : '';
|
||||||
|
alert('Registration link not configured for this event. Please contact the organizers' + contactInfo + '.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -15,8 +15,8 @@ export interface Event {
|
|||||||
highlights?: string[];
|
highlights?: string[];
|
||||||
organisers?: string[];
|
organisers?: string[];
|
||||||
fee?: Fee[];
|
fee?: Fee[];
|
||||||
phone: string;
|
phone?: string;
|
||||||
email: string;
|
email?: string;
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
bookSeatLink?: string; // Registration/booking link
|
bookSeatLink?: string; // Registration/booking link
|
||||||
learnMoreLink?: string; // Additional information link
|
learnMoreLink?: string; // Additional information link
|
||||||
|
|||||||
Reference in New Issue
Block a user