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