Skip to content

Commit

Permalink
Don't render unecessary div
Browse files Browse the repository at this point in the history
  • Loading branch information
clari182 committed Dec 12, 2023
1 parent 85c3273 commit c89ee4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/gatsby-site/src/components/variants/VariantList.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const VariantCard = ({ variant, incidentId }) => {
<div className="font-bold">
<Trans>Incident Date</Trans>:
</div>
<div>
{variant.date_published ? format(new Date(variant.date_published), 'yyyy-MM-dd') : ''}
</div>
{variant.date_published && (
<div>{format(new Date(variant.date_published), 'yyyy-MM-dd')}</div>
)}
</div>
{variant.text && (
<>
Expand Down

0 comments on commit c89ee4f

Please sign in to comment.