aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123@gmail.com>2020-09-18 20:54:25 +0300
committereug-vs <eug-vs@keemail.me>2020-10-08 22:05:52 +0300
commit12b52a29d27736075d71f97937f678650bfc6339 (patch)
tree6f2dbe06aa996d6d9cd23530be09cfa4fc4d5f85
parent14c42281faafb4866190a025f17abbe471f99fe9 (diff)
downloadwhich-ui-12b52a29d27736075d71f97937f678650bfc6339.tar.gz
dont show description if it is empty
-rw-r--r--src/components/PollCard/PollCard.tsx2
1 files changed, 1 insertions, 1 deletions
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<PropTypes> = React.memo(({ poll, setPoll }) => {
return (
<Card elevation={3}>
<UserStrip user={author} info={date} />
- <div className={classes.description}>{poll.description}</div>
+ {poll.description && <div className={classes.description}>{poll.description}</div>}
<div className={classes.media}>
<CardActionArea onDoubleClick={handleVote('left')} className={classes.media}>
<BackgroundImage src={left.url} />