Skip to content

Commit b8f48fe

Browse files
committed
.
1 parent 87fb9ae commit b8f48fe

File tree

2 files changed

+20
-27
lines changed

2 files changed

+20
-27
lines changed

components/Layout/LayoutCart.vue

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const updateCartDisplay = () => {
7474
7575
const remoteCartLength = data.value.cart.contents.nodes.reduce(
7676
(total, product) => total + product.quantity,
77-
0,
77+
0
7878
);
7979
8080
const remoteTotal = data.value.cart.contents.nodes.reduce(
@@ -83,7 +83,7 @@ const updateCartDisplay = () => {
8383
const productTotal = Number(product.total.replace(/[^0-9.-]+/g, ""));
8484
return total + productTotal;
8585
},
86-
0,
86+
0
8787
);
8888
8989
cartLength.value = remoteCartLength;
@@ -118,7 +118,7 @@ watch(
118118
() => {
119119
cartChanged.value = true;
120120
debouncedExecute();
121-
},
121+
}
122122
);
123123
124124
/*
@@ -128,7 +128,8 @@ setInterval(() => {
128128
cartChanged.value = false;
129129
debouncedExecute();
130130
}
131-
}, 5000);*/
131+
}, 5000);
132+
*/
132133
133134
if (process.client) {
134135
onMounted(() => {
@@ -145,8 +146,4 @@ if (process.client) {
145146
});
146147
});
147148
}
148-
149-
150-
151-
152149
</script>

pnpm-lock.yaml

Lines changed: 15 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)