@@ -136,7 +136,7 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
)}
);
- }
+ },
)
) : (
diff --git a/src/components/Product/SingleProduct.component.tsx b/src/components/Product/SingleProduct.component.tsx
index 94c2e99bd..19fa0af30 100644
--- a/src/components/Product/SingleProduct.component.tsx
+++ b/src/components/Product/SingleProduct.component.tsx
@@ -40,7 +40,7 @@ const SingleProduct = ({ product }: IProductRootObject) => {
if (process.browser) {
DESCRIPTION_WITHOUT_HTML = new DOMParser().parseFromString(
description,
- 'text/html'
+ 'text/html',
).body.textContent;
}
@@ -129,7 +129,7 @@ const SingleProduct = ({ product }: IProductRootObject) => {
{filteredName} - ({stockQuantity} på lager)
);
- }
+ },
)}
diff --git a/src/tests/Produkter/Produkter.spec.ts b/src/tests/Produkter/Produkter.spec.ts
index 0e47680ab..00fadebc7 100644
--- a/src/tests/Produkter/Produkter.spec.ts
+++ b/src/tests/Produkter/Produkter.spec.ts
@@ -31,7 +31,7 @@ test.describe('Produkter', () => {
// Check that that Handlekurv is visible
await expect(
- page.locator('section').filter({ hasText: 'Handlekurv' })
+ page.locator('section').filter({ hasText: 'Handlekurv' }),
).toBeVisible();
// Check that we can go to Kasse
@@ -43,7 +43,7 @@ test.describe('Produkter', () => {
});
await expect(
- page.locator('section').filter({ hasText: 'Kasse' })
+ page.locator('section').filter({ hasText: 'Kasse' }),
).toBeVisible();
// Check that we can type something in Billing fields
@@ -53,7 +53,7 @@ test.describe('Produkter', () => {
await page.getByPlaceholder('Etternavn').waitFor();
await expect(page.getByPlaceholder('Etternavn')).toHaveValue(
- 'testetternavn'
+ 'testetternavn',
);
});
});
diff --git a/src/utils/apollo/ApolloClient.js b/src/utils/apollo/ApolloClient.js
index 3acf4cd32..5372c9240 100644
--- a/src/utils/apollo/ApolloClient.js
+++ b/src/utils/apollo/ApolloClient.js
@@ -56,7 +56,7 @@ export const afterware = new ApolloLink((operation, forward) =>
}
return response;
- })
+ }),
);
const clientSide = typeof window === 'undefined';
@@ -69,8 +69,8 @@ const client = new ApolloClient({
createHttpLink({
uri: process.env.NEXT_PUBLIC_GRAPHQL_URL,
fetch,
- })
- )
+ }),
+ ),
),
cache: new InMemoryCache(),
});
diff --git a/src/utils/functions/functions.tsx b/src/utils/functions/functions.tsx
index 4c65ab4c3..315202b51 100644
--- a/src/utils/functions/functions.tsx
+++ b/src/utils/functions/functions.tsx
@@ -174,7 +174,7 @@ export const getFormattedCart = (data: IFormattedCartProps) => {
// Convert price to a float value
const convertedCurrency = givenProducts[Number(i)].total.replace(
/[^0-9.-]+/g,
- ''
+ '',
);
product.productId = givenProduct.productId;
@@ -253,7 +253,7 @@ export const createCheckoutData = (order: ICheckoutDataProps) => ({
export const getUpdatedItems = (
products: IProductRootObject[],
newQty: number,
- cartKey: string
+ cartKey: string,
) => {
// Create an empty array.
@@ -290,7 +290,7 @@ export const handleQuantityChange = (
cartKey: string,
cart: IProductRootObject[],
updateCart: (variables: IUpdateCartRootObject) => void,
- updateCartProcessing: boolean
+ updateCartProcessing: boolean,
) => {
if (process.browser) {
event.stopPropagation();
From 66926aa464cdca69f19eb86aa1afa67b89916cca Mon Sep 17 00:00:00 2001
From: w3bdesign <45217974+w3bdesign@users.noreply.github.com>
Date: Fri, 7 Jul 2023 15:30:40 +0200
Subject: [PATCH 3/3] Version 1.1.7
---
package-lock.json | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index c95c27cc2..6c193df2d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "nextjs-woocommerce",
- "version": "1.1.6",
+ "version": "1.1.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "nextjs-woocommerce",
- "version": "1.1.6",
+ "version": "1.1.7",
"license": "ISC",
"dependencies": {
"@apollo/client": "^3.7.16",
diff --git a/package.json b/package.json
index 2ff1fd156..f7df9dbd8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "nextjs-woocommerce",
- "version": "1.1.6",
+ "version": "1.1.7",
"private": true,
"scripts": {
"dev": "next dev",