From 65d02964dc2fd495f357fdf70655dd066606069d Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Mon, 26 May 2025 17:45:16 -0400 Subject: [PATCH] Fix email field not saving in EventAdmin RSVP edit form - Changed submission data field from 'email_address' to 'attendee_email' - Backend expects 'attendee_email' but frontend was sending 'email_address' - This fixes the issue where email updates wouldn't save to the database - Email field now properly updates when edited through the admin interface --- frontend/src/components/EventAdmin.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/EventAdmin.tsx b/frontend/src/components/EventAdmin.tsx index 6d21820..273a1fa 100644 --- a/frontend/src/components/EventAdmin.tsx +++ b/frontend/src/components/EventAdmin.tsx @@ -387,7 +387,7 @@ const EventAdmin: React.FC = () => { // Prepare submission data in the exact format the backend expects const submissionData = { name: editForm.name, - email_address: editForm.email_address, + attendee_email: editForm.email_address, attending: editForm.attending, bringing_guests: editForm.bringing_guests, guest_count: editForm.bringing_guests === 'yes' ? Math.max(1, parseInt(editForm.guest_count.toString(), 10)) : 0,