diff --git a/src/components/events/EventDetail.tsx b/src/components/events/EventDetail.tsx index ff84151..ff3cf58 100644 --- a/src/components/events/EventDetail.tsx +++ b/src/components/events/EventDetail.tsx @@ -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 + '.'); } }; diff --git a/src/lib/api.ts b/src/lib/api.ts index f21f8d4..b5e1c8e 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -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