Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.

Commit

Permalink
Conditionally render city/state/country
Browse files Browse the repository at this point in the history
Don't display those properties if they are falsey
  • Loading branch information
jjhampton committed Jul 13, 2018
1 parent 88318d7 commit 715f5ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scenes/home/jobs/featuredJob/featuredJob.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const FeaturedJob = ({
</div>
<div className={styles.detailsContainer}>
<FontAwesomeIcon icon={faMapMarkerAlt} size="sm" style={{ color: '#afafaf' }} />
<span className={styles.detail}>{city},</span>
<span className={styles.detail}>{state},</span>
<span className={styles.detail}>{country}</span>
{city && <span className={styles.detail}>{city},</span>}
{state && <span className={styles.detail}>{state},</span>}
{country && <span className={styles.detail}>{country}</span>}
</div>
{remote &&
<div className={styles.detailsContainer}>
Expand Down

0 comments on commit 715f5ab

Please sign in to comment.