@pretto/places 0.5.0 → 0.6.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/dist/index.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -186,7 +186,7 @@ const get = (instance, search, options) => __awaiter(void 0, void 0, void 0, fun
|
|
186
186
|
if (codeiso2 === '')
|
187
187
|
return acc;
|
188
188
|
const formatCountryName = convertFirstLetterToUpperCase(libcog.includes('(') ? libenr : libcog);
|
189
|
-
const formatCog = cog.includes('X') ? `(${cog})` : '';
|
189
|
+
const formatCog = !cog.includes('X') ? `(${cog})` : '';
|
190
190
|
const label = `${formatCountryName} ${formatCog}`;
|
191
191
|
return [...acc, { label, value: codeiso2.toLowerCase() }];
|
192
192
|
}, []);
|
package/dist/module.js
CHANGED
@@ -176,7 +176,7 @@ const get = (instance, search, options) => __awaiter(void 0, void 0, void 0, fun
|
|
176
176
|
if (codeiso2 === '')
|
177
177
|
return acc;
|
178
178
|
const formatCountryName = convertFirstLetterToUpperCase(libcog.includes('(') ? libenr : libcog);
|
179
|
-
const formatCog = cog.includes('X') ? `(${cog})` : '';
|
179
|
+
const formatCog = !cog.includes('X') ? `(${cog})` : '';
|
180
180
|
const label = `${formatCountryName} ${formatCog}`;
|
181
181
|
return [...acc, { label, value: codeiso2.toLowerCase() }];
|
182
182
|
}, []);
|