diff --git a/src/pages/master/wallet/blocks/AddDialog.tsx b/src/pages/master/wallet/blocks/AddDialog.tsx index b6be0ff..ffe8e54 100644 --- a/src/pages/master/wallet/blocks/AddDialog.tsx +++ b/src/pages/master/wallet/blocks/AddDialog.tsx @@ -55,13 +55,13 @@ const AddDialog = () => { description: string; status: string; group: string[]; - currency_id: string; + id_currency: string; } = { name: '', description: '', status: '', group: [], - currency_id: '' + id_currency: '' }; const [formField, setFormField] = useState(initialState); const [currencies, setCurrencies] = useState([]); @@ -126,7 +126,7 @@ const AddDialog = () => { formField.description.trim() === '' || formField.status.trim() === '' || formField.group.length === 0 || - formField.currency_id.trim() === '' + formField.id_currency.trim() === '' ) { setAlert({ show: true, message: 'Please fill in all required fields.' }); return; @@ -251,8 +251,8 @@ const AddDialog = () => { Currency*