Skip to content

Commit

Permalink
[CodeFactor] Apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Jul 9, 2023
1 parent cd9b939 commit b510b76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default defineNuxtPlugin((nuxtApp) => {
}
}
return response;
}),
})
);

// Cache implementation
Expand Down
4 changes: 2 additions & 2 deletions store/useCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const useCart = defineStore("cartState", {
actions: {
addToCart(product) {
const foundProductInCartIndex = this.cart.findIndex(
(cartproduct) => product.slug === cartproduct.slug,
(cartproduct) => product.slug === cartproduct.slug
);

if (foundProductInCartIndex > -1) {
Expand Down Expand Up @@ -40,7 +40,7 @@ export const useCart = defineStore("cartState", {
(total, product) =>
total +
Number(product.price.replace(currencySymbol, "")) * product.quantity,
0,
0
);
},
},
Expand Down

0 comments on commit b510b76

Please sign in to comment.