Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Bartosik committed Sep 25, 2021
1 parent cd15227 commit 8a2af73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/CountryDetails/CountryDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const CountryDetails: React.FC = () => {
<ul>
<li>
<span>Native Name: </span>
{country?.nativeName ? country?.nativeName : 'n/a'}
{country?.nativeName || 'n/a'}
</li>
<li>
<span>Population: </span>
Expand All @@ -48,15 +48,15 @@ const CountryDetails: React.FC = () => {
</li>
<li>
<span>Continent: </span>
{country?.continent ? country?.continent : 'n/a'}
{country?.continent || 'n/a'}
</li>
<li>
<span>Region: </span>
{country?.region ? country?.region : 'n/a'}
{country?.region || 'n/a'}
</li>
<li>
<span>Capital: </span>
{country?.capital ? country?.capital : 'n/a'}
{country?.capital || 'n/a'}
</li>
</ul>
<ul>
Expand Down

1 comment on commit 8a2af73

@vercel
Copy link

@vercel vercel bot commented on 8a2af73 Sep 25, 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.