fix: type error in handleSelectChange for bringing_guests value
This commit is contained in:
@@ -250,7 +250,7 @@ const EventAdmin: React.FC = () => {
|
|||||||
// When bringing guests is changed
|
// When bringing guests is changed
|
||||||
setEditForm(prev => ({
|
setEditForm(prev => ({
|
||||||
...prev,
|
...prev,
|
||||||
[name]: value,
|
bringing_guests: value as 'yes' | 'no',
|
||||||
// If changing to 'yes', set guest count to 1, otherwise reset to 0
|
// If changing to 'yes', set guest count to 1, otherwise reset to 0
|
||||||
guest_count: value === 'yes' ? 1 : 0,
|
guest_count: value === 'yes' ? 1 : 0,
|
||||||
// Clear guest names if changing to 'no'
|
// Clear guest names if changing to 'no'
|
||||||
|
|||||||
Reference in New Issue
Block a user