fix: type error in handleSelectChange for attendance status
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user