Skip to content

Commit ba2285b

Browse files
committed
Fix wrong template variable
1 parent 9685974 commit ba2285b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

view/base/templates/script/store/localstorage-store.phtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<?php
22
declare(strict_types=1);
33

4+
use Loki\Base\ViewModel\ModuleConfig;
45
use Loki\Base\ViewModel\SectionConfig;
56
use Magento\Framework\View\Element\Template;
67

78
/** @version 1.1.8 */
89
/** @var Template $block */
910
/** @var SectionConfig $sectionConfig */
10-
/** @var \Loki\Base\ViewModel\ModuleConfig $moduleConfig */
11+
/** @var ModuleConfig $moduleConfig */
12+
13+
$moduleConfig = $block->getModuleConfig();
1114
if ($moduleConfig->isEnabled('MageOS_AlpineLocalStorage')) {
1215
return;
1316
}
1417

1518
$sectionConfig = $block->getSectionConfig();
16-
$moduleConfig = $block->getModuleConfig();
1719
?>
1820
<script>
1921
document.addEventListener('alpine:init', () => {

0 commit comments

Comments
 (0)