diff --git a/src/components/pages/expense/form/ExpenseRealizationForm.tsx b/src/components/pages/expense/form/ExpenseRealizationForm.tsx index e9720d0b..9aa8eb7f 100644 --- a/src/components/pages/expense/form/ExpenseRealizationForm.tsx +++ b/src/components/pages/expense/form/ExpenseRealizationForm.tsx @@ -207,7 +207,7 @@ const ExpenseRealizationForm = ({ // add new realizations for each kandang kandangs.forEach((kandangItem) => { - if (!kandangItem.id) return; + if (isNaN(Number(kandangItem.id))) return; const existingRealization = formik.values.realizations?.find( (realizationItem) => realizationItem.kandang_id === kandangItem.id