Skip to content

Commit

Permalink
fix: Hide duration if its not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 27, 2020
1 parent b3b079d commit de45a61
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 de45a61

Please sign in to comment.