From f03f0c8f904a287f9211ee72a422deae3b1e40a4 Mon Sep 17 00:00:00 2001 From: Bruno Castro Date: Wed, 28 Jul 2021 08:24:45 -0300 Subject: [PATCH] fix: do not render empty string as accordion description (#2831) --- src/components/List/ListAccordion.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/List/ListAccordion.tsx b/src/components/List/ListAccordion.tsx index 47010da2f5..5d7bbed664 100644 --- a/src/components/List/ListAccordion.tsx +++ b/src/components/List/ListAccordion.tsx @@ -215,7 +215,7 @@ const ListAccordion = ({ > {title} - {description && ( + {description ? ( {description} - )} + ) : null}