Skip to content

Commit 1b558f2

Browse files
committed
Refactor
1 parent 9627992 commit 1b558f2

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

pages/kategori/[slug].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { GET_PRODUCTS_FROM_CATEGORY } from 'utils/gql/GQL_QUERIES';
1212
* Display a single product with dynamic pretty urls
1313
*/
1414
const Produkt = ({ categoryName, products }) => {
15-
let error = false;
15+
const error = false;
1616

1717
return (
1818
<>

pages/produkt/[slug].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { GET_SINGLE_PRODUCT } from 'utils/gql/GQL_QUERIES';
1111
* Display a single product with dynamic pretty urls
1212
*/
1313
const Produkt = ({ product }) => {
14-
let error = false;
14+
const error = false;
1515

1616
return (
1717
<>

utils/constants/LINKS.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//exports.default = [
21
const LINKS = [
32
{
43
id: 0,

utils/functions/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import WOO_CONFIG from 'utils/config/nextConfig';
1010
export const trimmedStringToLength = (string, length) => {
1111
if (string.length > length) {
1212
const subStr = string.substring(0, length);
13-
return subStr + '...';
13+
return `${subStr}...`;
1414
}
1515
return string;
1616
};

0 commit comments

Comments
 (0)