Skip to content

Commit

Permalink
Filtering out Mongolia from country list
Browse files Browse the repository at this point in the history
  • Loading branch information
RoxanaTorre committed Mar 28, 2024
1 parent 8000393 commit d0fb164
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/AppAllCountries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,14 @@ function App() {
year: Number(d.year),
}));
setCountriesSources(countriesSourcesData);
const countryData = groupingsCsv.map((d: any) => ({
...d,
label: d.name,
value: d.iso,
}));
// ----- filtering Mongolia temporarily!!
const countryData = groupingsCsv
.filter(k => k.name !== 'Mongolia')
.map((d: any) => ({
...d,
label: d.name,
value: d.iso,
}));
setSelectedCountry(countryData[0]);
const dsaRatingData = dsaRatingCsv.map((d: any) => ({
name: d.Country,
Expand Down

0 comments on commit d0fb164

Please sign in to comment.