Skip to content

Commit

Permalink
Fix fatal error in checkout if no api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Matras committed Nov 26, 2024
1 parent 96fdc1f commit 2529f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/MollieConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function getMethodInstance($code)
public function getConfig(): array
{
// Do not load the config when on the cart page.
if ($this->request->getControllerName() === 'cart') {
if (!$this->config->isModuleEnabled() || $this->request->getControllerName() === 'cart') {
return [];
}

Expand Down

0 comments on commit 2529f7a

Please sign in to comment.