Fix multiple search countries

This commit is contained in:
2024-03-19 20:41:34 +01:00
parent 46496d7438
commit f78bedc2a6

View File

@@ -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 = [];