Skip to content

Commit

Permalink
Update AddProductForm.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
BurhanCantCode authored Aug 2, 2024
1 parent 7c33617 commit 03f2ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/AddProductForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -148,4 +148,4 @@ const AddProductForm = () => {
);
};

export default AddProductForm;
export default AddProductForm;

0 comments on commit 03f2ccc

Please sign in to comment.