File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ export async function getStaticProps() {
33
33
return {
34
34
props : {
35
35
products : data . products . nodes ,
36
- loading : loading ,
37
- networkStatus : networkStatus ,
36
+ loading,
37
+ networkStatus,
38
38
} ,
39
39
revalidate : 10 ,
40
40
} ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default withRouter(Produkt);
36
36
export async function getServerSideProps ( { query : { id } } ) {
37
37
const res = await client . query ( {
38
38
query : GET_SINGLE_PRODUCT ,
39
- variables : { id : id } ,
39
+ variables : { id } ,
40
40
} ) ;
41
41
42
42
return {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const getFloatVal = (string) => {
47
47
export const getFormattedCart = ( data ) => {
48
48
let formattedCart = null ;
49
49
50
- if ( undefined === data || ! data . cart . contents . nodes . length ) {
50
+ if ( ! data || ! data . cart . contents . nodes . length ) {
51
51
return formattedCart ;
52
52
}
53
53
You can’t perform that action at this time.
0 commit comments