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 8dfe26a + 1e77ebe commit 000bd83Copy full SHA for 000bd83
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