Fix Email and phone optional

This commit is contained in:
2026-08-13 12:54:36 +05:30
parent 8a155b689b
commit 678e3812b6
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -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
View File
@@ -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