From 03f2ccc24bf9394b409580db9c26b85aac56b24f Mon Sep 17 00:00:00 2001 From: Burhanuddin Khatri <144617735+BurhanCantCode@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:21:55 +0500 Subject: [PATCH] Update AddProductForm.tsx --- components/AddProductForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/AddProductForm.tsx b/components/AddProductForm.tsx index 44a2ea0..94c604c 100644 --- a/components/AddProductForm.tsx +++ b/components/AddProductForm.tsx @@ -38,7 +38,7 @@ const AddProductForm = () => { setQuantity(result.quantity.toString()); setPotentialLabels(result.allLabels || []); setShowConfirmation(true); - } catch (error) { + } catch (error: unknown) { console.error('Error scanning product:', error); setError('Failed to identify the product. Please try again or enter the details manually.'); } finally { @@ -148,4 +148,4 @@ const AddProductForm = () => { ); }; -export default AddProductForm; \ No newline at end of file +export default AddProductForm;