Skip to content

Commit

Permalink
Merge pull request #198 from w3bdesign/development
Browse files Browse the repository at this point in the history
Remove console logs
  • Loading branch information
w3bdesign authored Jul 6, 2020
2 parents fbcbb08 + 43065a7 commit 709688b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions components/Cart/CartPage/CartItem.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import { getUpdatedItems } from 'utils/functions/functions';
const CartItem = ({ item, products, handleRemoveProductClick, updateCart }) => {
const [productCount, setProductCount] = useState(item.qty);

console.log("Cart item: ");
console.log(item);
console.log("Cart products: ");
console.log(products);


/*
* When user changes the quantity, update the cart in localStorage
* Also update the cart in the global Context
Expand Down Expand Up @@ -63,13 +57,10 @@ const CartItem = ({ item, products, handleRemoveProductClick, updateCart }) => {
alt={item.image.title}
/>
</td>

<td className="px-4 py-2 border">{item.name}</td>

<td className="px-4 py-2 border">
{'string' !== typeof item.price ? item.price.toFixed(2) : item.price}
</td>

<td className="px-4 py-2 border">
<input
className="w-12"
Expand All @@ -79,7 +70,6 @@ const CartItem = ({ item, products, handleRemoveProductClick, updateCart }) => {
onChange={(event) => handleQuantityChange(event, item.cartKey)}
/>
</td>

<td className="px-4 py-2 border">
{'string' !== typeof item.totalPrice
? item.totalPrice.toFixed(2)
Expand Down

1 comment on commit 709688b

@vercel
Copy link

@vercel vercel bot commented on 709688b Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.