fix: type error in handleSelectChange for attendance status

This commit is contained in:
Starstrike
2025-05-01 17:29:05 -04:00
parent 7443312cc9
commit 8bcb802267

View File

@@ -240,7 +240,7 @@ const EventAdmin: React.FC = () => {
// If not attending, reset all guest-related fields and items
setEditForm(prev => ({
...prev,
attending: value,
attending: value as 'no' | 'maybe', // Type assertion to match EditFormData interface
bringing_guests: 'no',
guest_count: 0,
guest_names: '',