Skip to content

Commit 0e6217d

Browse files
committed
Cleanup
1 parent 1b4532d commit 0e6217d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

refactor/src/components/Layout/Layout.component.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ const Layout = ({ children, title }: ILayoutProps) => {
3939
// Update cart in the localStorage.
4040
const updatedCart = getFormattedCart(data);
4141

42-
/*if (!updatedCart) {
43-
return;
44-
}*/
45-
46-
4742
if (!updatedCart && !data?.cart?.contents?.nodes.length) {
4843
// Clear the localStorage if we have no remote cart
4944

@@ -52,7 +47,6 @@ const Layout = ({ children, title }: ILayoutProps) => {
5247
return;
5348
}
5449

55-
5650
localStorage.setItem('woocommerce-cart', JSON.stringify(updatedCart));
5751

5852
// Update cart data in React Context.

0 commit comments

Comments
 (0)