diff --git a/components/AddProductForm.tsx b/components/AddProductForm.tsx index 94c604c..caa0099 100644 --- a/components/AddProductForm.tsx +++ b/components/AddProductForm.tsx @@ -64,7 +64,7 @@ const AddProductForm = () => { setName(''); setQuantity(''); setSuccessOpen(true); - } catch (error) { + } catch (error: unknown) { console.error('Error in handleSubmit:', error); setError('Failed to add product'); } finally {