This commit is contained in:
mgabdev 2020-05-01 01:54:27 -04:00
parent 8e349c368c
commit 4c3be2b894

View File

@ -50,8 +50,8 @@ export default class TrendingItem extends ImmutablePureComponent {
if (!trend) return null
const title = trend.get('title')
const description = trend.get('description')
const title = trend.get('title') || ''
const description = trend.get('description') || ''
const correctedAuthor = trend.getIn(['author', 'name'], '').replace('www.', '')
const correctedDescription = description.length >= 120 ? `${description.substring(0, 120).trim()}...` : description