@woosmap/ui 4.139.0 → 4.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -293,7 +293,7 @@ export default class CountrySelect extends Component {
|
|
|
293
293
|
if (value) {
|
|
294
294
|
if (Array.isArray(value)) {
|
|
295
295
|
countryOption = value.map((countryVal) => {
|
|
296
|
-
const countryCode = countryVal
|
|
296
|
+
const countryCode = countryVal?.value?.toLowerCase() || countryVal?.toLowerCase();
|
|
297
297
|
if (countryCode.length > 2) {
|
|
298
298
|
const countryObj = this.filterCountry(countryCode);
|
|
299
299
|
return countryObj && { ...countryObj, value: countryVal };
|