Skip to content

Commit

Permalink
refactor: src/generate/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Irakli Gozalishvili <contact@gozala.io>

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
lidel committed Oct 20, 2020
1 parent 7b0d9b7 commit a1eba19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function parseCountries (locations) {
})
.then((parsed) => {
return _.reduce(parsed, (acc, row) => {
if (typeof acc[row.country_iso_code] === 'undefined') {
if (typeof acc[row.country_iso_code] != null) { // eslint-disable-line valid-typeof
acc[row.country_iso_code] = normalizeName(row.country_name)
}
return acc
Expand Down

0 comments on commit a1eba19

Please sign in to comment.