Skip to content

Commit

Permalink
More changes in API
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Bartosik committed Sep 28, 2021
1 parent 67dd363 commit b90ad0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/pages/CountryDetails/CountryDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ const CountryDetails: React.FC = () => {
? country?.population.toLocaleString()
: 'n/a'}
</li>
<li>
<span>Continent: </span>
{country?.continent || 'n/a'}
</li>
<li>
<span>Region: </span>
{country?.region || 'n/a'}
</li>
<li>
<span>Subregion: </span>
{country?.subregion || 'n/a'}
</li>
<li>
<span>Capital: </span>
{country?.capital || 'n/a'}
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const filteredByRegionCountriesState = selector({
if (filter === Regions.All) {
return countries;
}
return countries.filter(country => country.continent === filter);
return countries.filter(country => country.region === filter);
},
});

Expand Down

1 comment on commit b90ad0a

@vercel
Copy link

@vercel vercel bot commented on b90ad0a Sep 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.