fix: type error in handleSelectChange for bringing_guests value

This commit is contained in:
Starstrike
2025-05-01 17:34:52 -04:00
parent 9c38c956fd
commit f6183f1c76

View File

@@ -250,7 +250,7 @@ const EventAdmin: React.FC = () => {
// When bringing guests is changed
setEditForm(prev => ({
...prev,
[name]: value,
bringing_guests: value as 'yes' | 'no',
// If changing to 'yes', set guest count to 1, otherwise reset to 0
guest_count: value === 'yes' ? 1 : 0,
// Clear guest names if changing to 'no'