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 fca1de9 commit 9a43ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/AddProductForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9a43ae5

Please sign in to comment.