Skip to content

Commit 919b697

Browse files
authored
Merge pull request #1146 from w3bdesign/dev
Nuxt 3.7
2 parents 0e62be1 + ccdfaf6 commit 919b697

File tree

6 files changed

+1762
-1150
lines changed

6 files changed

+1762
-1150
lines changed

components/Cart/CartItem.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
</div>
2626
<div class="item">
2727
<span class="block mt-2 font-extrabold">Subtotal: <br /></span>
28-
<span class="item-content"
29-
>{{ formatPrice(`${product.total}`) }}</span
30-
>
28+
<span class="item-content">{{ formatPrice(`${product.total}`) }}</span>
3129
</div>
3230
</div>
3331
</template>
@@ -63,7 +61,7 @@ const emit = defineEmits(["remove"]);
6361
6462
/**
6563
* Emits a "remove" event with the `product` prop as the payload.
66-
*/
64+
*/
6765
const emitRemove = () => {
6866
emit("remove", props.product);
6967
};

components/Layout/LayoutCart.vue

Lines changed: 3 additions & 3 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
// Use a longer interval if you still want to use an interval

0 commit comments

Comments
 (0)