From c89ee4f9315f1571605b64a53fc608bf0e551309 Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Tue, 12 Dec 2023 09:38:21 -0300 Subject: [PATCH] Don't render unecessary div --- site/gatsby-site/src/components/variants/VariantList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/gatsby-site/src/components/variants/VariantList.js b/site/gatsby-site/src/components/variants/VariantList.js index ab62160e19..83ec75dbb7 100644 --- a/site/gatsby-site/src/components/variants/VariantList.js +++ b/site/gatsby-site/src/components/variants/VariantList.js @@ -69,9 +69,9 @@ const VariantCard = ({ variant, incidentId }) => {
Incident Date:
-
- {variant.date_published ? format(new Date(variant.date_published), 'yyyy-MM-dd') : ''} -
+ {variant.date_published && ( +
{format(new Date(variant.date_published), 'yyyy-MM-dd')}
+ )} {variant.text && ( <>