diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index dd4406c..c811e2c 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -37,7 +37,7 @@ function BestellungDetail({ id, toast, onBack }) { const [archiv, setArchiv] = useState([]); const [showPicker, setShowPicker] = useState(false); const [pickerSearch,setPickerSearch]= useState(''); - const [editMode, setEditMode] = useState(!id); + const [editMode, setEditMode] = useState(false); const [form, setForm] = useState({ name:'', bemerkung:'', custom_price:'', status:'warteliste' }); useEffect(() => { @@ -175,7 +175,7 @@ function BestellungDetail({ id, toast, onBack }) { )} {/* Formular */} - {(editMode || !id) && !order?.bezahlt && ( + {(!id || editMode) && !order?.bezahlt && (