We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ceed8b6 + 000bd83 commit 22d97b5Copy full SHA for 22d97b5
app/code/Magento/Directory/Model/ResourceModel/Country/Collection.php
@@ -327,7 +327,7 @@ private function addDefaultCountryToOptions(array &$options)
327
328
foreach ($options as $key => $option) {
329
if (isset($defaultCountry[$option['value']])) {
330
- $options[$key]['is_default'] = $defaultCountry[$option['value']];
+ $options[$key]['is_default'] = !empty($defaultCountry[$option['value']]);
331
}
332
333
0 commit comments