Skip to content

Commit

Permalink
fix: country mapping fix (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterkmr authored Aug 20, 2023
1 parent 8d0b56b commit c6c025a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/config/cspell.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ module.exports = {
'.vscode/**',
'tsconfig.tsbuildinfo',
'stats.html',
'currency-codes.ts',
'states.ts',
'countries.ts',
],
flagWords: [],
dictionaries: ['workspace'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export interface ICountry {
export const getCountriesList = (): ICountry[] =>
Object.entries(isoCountriesRecord).map(([isoCode, fullName]) => ({
isoCode,
fullName: fullName as string,
fullName: Array.isArray(fullName) ? fullName[0] : (fullName as string),
}));

export const getCountryStates = (countryCode: string) => {
Expand Down

0 comments on commit c6c025a

Please sign in to comment.