Skip to content

Commit 0f472db

Browse files
authored
Merge pull request #382 from w3bdesign/develop
Fix Codacy issues
2 parents b28e477 + 112469c commit 0f472db

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export async function getStaticProps() {
3333
return {
3434
props: {
3535
products: data.products.nodes,
36-
loading: loading,
37-
networkStatus: networkStatus,
36+
loading,
37+
networkStatus,
3838
},
3939
revalidate: 10,
4040
};

pages/produkt/[slug].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default withRouter(Produkt);
3636
export async function getServerSideProps({ query: { id } }) {
3737
const res = await client.query({
3838
query: GET_SINGLE_PRODUCT,
39-
variables: { id: id },
39+
variables: { id },
4040
});
4141

4242
return {

utils/functions/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const getFloatVal = (string) => {
4747
export const getFormattedCart = (data) => {
4848
let formattedCart = null;
4949

50-
if (undefined === data || !data.cart.contents.nodes.length) {
50+
if (!data || !data.cart.contents.nodes.length) {
5151
return formattedCart;
5252
}
5353

0 commit comments

Comments
 (0)