diff --git a/src/view/frontend/templates/script/rumvision.phtml b/src/view/frontend/templates/script/rumvision.phtml index 353e4c9..1b719ba 100755 --- a/src/view/frontend/templates/script/rumvision.phtml +++ b/src/view/frontend/templates/script/rumvision.phtml @@ -1,13 +1,15 @@ getData('rumvision_view_model'); - -if (!$viewModel->shouldIncludeScript()) { +/** @var Rumvision $viewModel */ +$viewModel = $block->getData('rumvision_view_model'); +if (! $viewModel->shouldIncludeScript()) { return; } ?>