From 9a43ae526bcfb5722bc47cf15a06f0f821f3a8ee Mon Sep 17 00:00:00 2001 From: Burhanuddin Khatri <144617735+BurhanCantCode@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:26:59 +0500 Subject: [PATCH] Update AddProductForm.tsx --- components/AddProductForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {