We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92cb3c6 commit f927ac0Copy full SHA for f927ac0
components/Cart/Cart.component.jsx
@@ -10,16 +10,9 @@ import { AppContext } from 'utils/context/AppContext';
10
const Cart = ({ stickyNav }) => {
11
const [cart] = useContext(AppContext);
12
13
- /*const productsCount = cart.contents.nodes.reduce(
14
- (total, product) => total + product.quantity,
15
- 0
16
- );*/
17
-
18
const productsCount =
19
null !== cart && Object.keys(cart).length ? cart.totalProductsCount : '';
20
21
22
23
return (
24
<>
25
<Link href="/handlekurv">
0 commit comments