From 12b52a29d27736075d71f97937f678650bfc6339 Mon Sep 17 00:00:00 2001 From: ilyayudovin Date: Fri, 18 Sep 2020 20:54:25 +0300 Subject: dont show description if it is empty --- src/components/PollCard/PollCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/PollCard/PollCard.tsx') diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx index e2d06ee..b6fdfaa 100644 --- a/src/components/PollCard/PollCard.tsx +++ b/src/components/PollCard/PollCard.tsx @@ -96,7 +96,7 @@ const PollCard: React.FC = React.memo(({ poll, setPoll }) => { return ( -
{poll.description}
+ {poll.description &&
{poll.description}
}
-- cgit v1.2.3