Skip to content

Commit 9ab14e1

Browse files
committed
Update AddToCart.component.tsx
1 parent f634c8e commit 9ab14e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Product/AddToCart.component.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ const AddToCart = ({
129129
updateCart(updatedCart);
130130
}
131131
},
132-
onError: () => {
132+
onError: (error) => {
133+
console.error('Error adding to cart');
134+
console.error(error);
133135
setRequestError(true);
134136
},
135137
});

0 commit comments

Comments
 (0)