Skip to content

Commit

Permalink
Merge pull request #5 from helsingborg-stad/fix/products-error-notices
Browse files Browse the repository at this point in the history
Fix: Products error notices
  • Loading branch information
Anna authored Sep 8, 2023
2 parents 48c6740 + 932ab6c commit 8cd3704
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/php/Module/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ public function data(): array
));

foreach ($data['products'] as &$product) {

foreach ($product['bulletPoints'] as &$bulletPoint) {
$bulletPoint['icon']['src'] = 'check_circle';
$bulletPoint['size'] = 'sm';
}
if (!empty($product['bulletPoints'])) {
foreach ($product['bulletPoints'] as &$bulletPoint) {
$bulletPoint['icon']['src'] = 'check_circle';
$bulletPoint['size'] = 'sm';
}
}

if (!empty($product['prices'])) {
foreach ($product['prices'] as &$price) {
Expand Down

0 comments on commit 8cd3704

Please sign in to comment.