Update UserDetailComment.js

Ternary to display asset url if there's no asset title in admin comments
This commit is contained in:
Olly Dutton
2018-03-13 12:16:59 +11:00
committed by GitHub
parent 2f5fc03e9c
commit 93e850ba3f
@@ -76,7 +76,7 @@ class UserDetailComment extends React.Component {
</div>
</div>
<div className={styles.story}>
Story: {comment.asset.title}
Story: {comment.asset.title ? comment.asset.title : comment.asset.url}
{
<Link to={`/admin/moderate/${comment.asset.id}`}>
{t('modqueue.moderate')}