Skip to content

Commit f5131f2

Browse files
committed
Remove unused parameter
1 parent e9a1e7d commit f5131f2

File tree

3 files changed

+120
-120
lines changed

3 files changed

+120
-120
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-woocommerce",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "Nextjs WooCommerce webshop",
55
"main": "index.js",
66
"scripts": {
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"@apollo/client": "^3.3.8",
1616
"@types/react": "^17.0.1",
17-
"algoliasearch": "^4.8.4",
17+
"algoliasearch": "^4.8.5",
1818
"autoprefixer": "^10.2.4",
1919
"graphql": "^15.5.0",
2020
"next": "^10.0.6",

utils/functions/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const getUpdatedProducts = (
129129
* @return {number | *} Index Returns -1 if product does not exist in the array, index number otherwise
130130
*/
131131
const isProductInCart = (existingProductsInCart, productId) => {
132-
const returnItemThatExits = (item, index) => {
132+
const returnItemThatExits = (item) => {
133133
if (productId === item.productId) {
134134
return item;
135135
}

0 commit comments

Comments
 (0)