diff --git a/frontend/src/components/TopicCard/index.js b/frontend/src/components/TopicCard/index.js index 9b8a2940..a7603257 100644 --- a/frontend/src/components/TopicCard/index.js +++ b/frontend/src/components/TopicCard/index.js @@ -8,7 +8,7 @@ import Attachments from './Attachments' class ReactTopicCard extends Component { render = () => { const { topic, ActiveMapper } = this.props - var authorizedToEdit = topic.authorizeToEdit(ActiveMapper) + const authorizedToEdit = topic.authorizeToEdit(ActiveMapper) const hasAttachment = topic.get('link') && topic.get('link') !== '' const topicId = topic.isNew() ? topic.cid : topic.id // TODO should we be using cid here??? @@ -24,15 +24,15 @@ class ReactTopicCard extends Component {