fix bug in Desc.js

This commit is contained in:
Devin Howard 2017-02-25 20:57:39 -08:00
parent 80ccc55131
commit be0997e657

View file

@ -24,8 +24,8 @@ class MdTextArea extends RIETextArea {
class Desc extends Component {
render = () => {
const descHTML = (this.props.desc === '' && this.props.authorizedToEdit)
? '<p.Click to add description...</p>'
const descHTML = (!this.props.desc && this.props.authorizedToEdit)
? '<p>Click to add description...</p>'
: Util.mdToHTML(this.props.desc)
if (this.props.authorizedToEdit) {