From cfd64612fc283e562120f1a861164524d3ea6b5a Mon Sep 17 00:00:00 2001 From: John Hampton Date: Thu, 12 Jul 2018 21:14:42 -0400 Subject: [PATCH] Conditionally render city/state/country Don't display those properties if they are falsey --- src/scenes/home/jobs/featuredJob/featuredJob.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scenes/home/jobs/featuredJob/featuredJob.js b/src/scenes/home/jobs/featuredJob/featuredJob.js index acdef1091..7accde802 100644 --- a/src/scenes/home/jobs/featuredJob/featuredJob.js +++ b/src/scenes/home/jobs/featuredJob/featuredJob.js @@ -29,9 +29,9 @@ const FeaturedJob = ({
- {city}, - {state}, - {country} + {city && {city},} + {state && {state},} + {country && {country}}
{remote &&