Skip to content

Commit

Permalink
fix(article card): hide zero reading time
Browse files Browse the repository at this point in the history
Hide the reading time if the value is 0

closes #169
  • Loading branch information
anguspiv committed Nov 15, 2022
1 parent 69b3519 commit 6939150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/molecules/ArticleCard/ArticleCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function ArticleCard({ date, excerpt, featured, readingTime, slug, title
{date}
</p>
)}
{readingTime && (
{!!readingTime && (
<p
css={css`
${detail}
Expand Down

0 comments on commit 6939150

Please sign in to comment.