Skip to content

Commit

Permalink
Merge pull request #291 from newrelic/jerel/fix-duration
Browse files Browse the repository at this point in the history
Hide duration if its not specified
  • Loading branch information
jerelmiller authored Jun 27, 2020
2 parents ac7d183 + de45a61 commit 327a2d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/GuideTile/GuideTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ const GuideTile = ({
</div>
)}
<div className={styles.timeEstimate}>
<FeatherIcon className={styles.timeIcon} name="clock" />
{duration ? (
<FeatherIcon className={styles.timeIcon} name="clock" />
) : (
<span>&nbsp;</span>
)}
{duration}
</div>
<h3 className={styles.title}>{title}</h3>
Expand Down

0 comments on commit 327a2d8

Please sign in to comment.