File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class Footer extends CoreFooter
23
23
/**
24
24
* ScandiPWA registration theme component name
25
25
*/
26
- const SCANDIPWA_COMPONENT_NAME = 'frontend/scandipwa/scandipwa ' ;
26
+ const SCANDIPWA_COMPONENT_NAME = 'frontend/scandipwa ' ;
27
27
28
28
/**
29
29
* @var ListInterface
@@ -85,7 +85,7 @@ public function getPackageJsonData() {
85
85
$ packageData = json_decode (file_get_contents ($ pathToTheme ), true );
86
86
$ this ->scandiPWAPackgeVersion = $ this ->getScandiPWAFromPackageData ($ packageData );
87
87
} else {
88
- $ this ->scandiPWAPackgeVersion = false ;
88
+ $ this ->scandiPWAPackgeVersion = ' n/a ' ;
89
89
}
90
90
}
91
91
@@ -99,7 +99,7 @@ public function getScandiPWADirectoryPath() {
99
99
$ themeDirectoryPath = null ;
100
100
101
101
foreach ($ this ->themeList as $ theme ) {
102
- if ($ theme ->getFullPath () === self ::SCANDIPWA_COMPONENT_NAME ) {
102
+ if (str_contains ( $ theme ->getFullPath (), self ::SCANDIPWA_COMPONENT_NAME ) ) {
103
103
$ themeDirectoryPath = $ this ->componentRegistrar ->getPath (
104
104
ComponentRegistrar::THEME ,
105
105
$ theme ->getFullPath ()
You can’t perform that action at this time.
0 commit comments