diff --git a/app/Http/Controllers/ProductsCompareController.php b/app/Http/Controllers/ProductsCompareController.php index 2f292fa..ae5ffb0 100644 --- a/app/Http/Controllers/ProductsCompareController.php +++ b/app/Http/Controllers/ProductsCompareController.php @@ -33,7 +33,7 @@ class ProductsCompareController extends Controller if ($countries != null && count($countries)) { $hCountry = CountryCode::countryHash(); $countries = $countries->map(function ($country) use ($hCountry) { - return $hCountry[$country]; + return $hCountry[$country["name"]]; }); } else { $countries = [];