diff --git a/api/salony/index.php b/api/salony/index.php index f318130..e50a634 100644 --- a/api/salony/index.php +++ b/api/salony/index.php @@ -50,7 +50,7 @@ foreach ($places as $place) { $shopItem['address'] = $shop['address']; } - if (!empty($shop['openHours'])) { + if (!empty($shop['open_hours'])) { $shopItem['openHours'] = $shop['open_hours']; } diff --git a/salony/widget.js b/salony/widget.js index 97bd08d..1a32030 100644 --- a/salony/widget.js +++ b/salony/widget.js @@ -184,7 +184,7 @@ clone.querySelector('.shopAddress').textContent = `${place.name} - ${ shop.address || '' }` - clone.querySelector('.shopHours').textContent = shop.open_hours || '—' + clone.querySelector('.shopHours').textContent = shop.openHours || '—' // GOOGLE LINK const googleLink = clone.querySelector('.googleLink')