diff --git a/frontend/src/components/RSVPForm.tsx b/frontend/src/components/RSVPForm.tsx index 505c421..3d61861 100644 --- a/frontend/src/components/RSVPForm.tsx +++ b/frontend/src/components/RSVPForm.tsx @@ -73,9 +73,10 @@ const RSVPForm: React.FC = () => { const handleItemsChange = (e: SelectChangeEvent) => { const { value } = e.target; + const newValue = typeof value === 'string' ? value.split(',') : value; setFormData(prev => ({ ...prev, - items_bringing: Array.isArray(value) ? value : value.split(',').filter(Boolean), + items_bringing: Array.isArray(newValue) ? newValue : [], })); }; @@ -202,25 +203,25 @@ const RSVPForm: React.FC = () => { )}