File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ define([
42
42
position : index + 1 ,
43
43
} ) ) ;
44
44
} ,
45
- headerComponent ( { html} ) {
46
- if ( this . props . recommendations . length === 0 ) {
47
- return html
45
+ headerComponent ( { html, recommendations } ) {
46
+ if ( ! recommendations . length ) {
47
+ return '' ;
48
48
}
49
49
return recommendProductsHtml . getHeaderHtml (
50
50
html ,
@@ -78,9 +78,9 @@ define([
78
78
position : index + 1 ,
79
79
} ) ) ;
80
80
} ,
81
- headerComponent ( { html} ) {
82
- if ( this . props . recommendations . length === 0 ) {
83
- return html ;
81
+ headerComponent ( { html, recommendations } ) {
82
+ if ( ! recommendations . length ) {
83
+ return '' ;
84
84
}
85
85
return recommendProductsHtml . getHeaderHtml (
86
86
html ,
@@ -121,9 +121,9 @@ define([
121
121
position : index + 1 ,
122
122
} ) ) ;
123
123
} ,
124
- headerComponent ( { html} ) {
125
- if ( this . props . recommendations . length === 0 ) {
126
- return html ;
124
+ headerComponent ( { html, recommendations } ) {
125
+ if ( ! recommendations . length ) {
126
+ return '' ;
127
127
}
128
128
return recommendProductsHtml . getHeaderHtml (
129
129
html ,
You can’t perform that action at this time.
0 commit comments