Skip to content

Commit 709688b

Browse files
authored
Merge pull request #198 from w3bdesign/development
Remove console logs
2 parents fbcbb08 + 43065a7 commit 709688b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

components/Cart/CartPage/CartItem.component.jsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ import { getUpdatedItems } from 'utils/functions/functions';
77
const CartItem = ({ item, products, handleRemoveProductClick, updateCart }) => {
88
const [productCount, setProductCount] = useState(item.qty);
99

10-
console.log("Cart item: ");
11-
console.log(item);
12-
console.log("Cart products: ");
13-
console.log(products);
14-
15-
1610
/*
1711
* When user changes the quantity, update the cart in localStorage
1812
* Also update the cart in the global Context
@@ -63,13 +57,10 @@ const CartItem = ({ item, products, handleRemoveProductClick, updateCart }) => {
6357
alt={item.image.title}
6458
/>
6559
</td>
66-
6760
<td className="px-4 py-2 border">{item.name}</td>
68-
6961
<td className="px-4 py-2 border">
7062
{'string' !== typeof item.price ? item.price.toFixed(2) : item.price}
7163
</td>
72-
7364
<td className="px-4 py-2 border">
7465
<input
7566
className="w-12"
@@ -79,7 +70,6 @@ const CartItem = ({ item, products, handleRemoveProductClick, updateCart }) => {
7970
onChange={(event) => handleQuantityChange(event, item.cartKey)}
8071
/>
8172
</td>
82-
8373
<td className="px-4 py-2 border">
8474
{'string' !== typeof item.totalPrice
8575
? item.totalPrice.toFixed(2)

0 commit comments

Comments
 (0)