From be0997e65757b0c147340ed37202981ebf4d6bd3 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sat, 25 Feb 2017 20:57:39 -0800 Subject: [PATCH] fix bug in Desc.js --- frontend/src/components/TopicCard/Desc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/TopicCard/Desc.js b/frontend/src/components/TopicCard/Desc.js index 689977f5..c94f30fb 100644 --- a/frontend/src/components/TopicCard/Desc.js +++ b/frontend/src/components/TopicCard/Desc.js @@ -24,8 +24,8 @@ class MdTextArea extends RIETextArea { class Desc extends Component { render = () => { - const descHTML = (this.props.desc === '' && this.props.authorizedToEdit) - ? '' + const descHTML = (!this.props.desc && this.props.authorizedToEdit) + ? '

Click to add description...

' : Util.mdToHTML(this.props.desc) if (this.props.authorizedToEdit) {