Skip to content

Commit

Permalink
[SDPA-3163] Added lint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
MdNadimHossain committed Sep 10, 2019
1 parent 1692850 commit 36a6cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/Molecules/Card/CardKeydates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export default {
const titleMaxLength = 80
const titleMinLength = 40
const descriptionLength = 120
if (typeof window !== undefined) {
if (typeof window !== 'undefined') {
if (this.keydates.length > 1) {
trimedKeyDates = this.keydates.map(dates => ({
date: dates.date,
title: (dates.description.length > titleMaxLength && dates.title.length > titleMinLength) ? truncateText(dates.title, titleMinLength) : truncateText(dates.title, titleMaxLength),
description: dates.description.length > descriptionLength ? truncateText(dates.description, descriptionLength) : dates.description,
description: dates.description.length > descriptionLength ? truncateText(dates.description, descriptionLength) : dates.description
}))
}
}
Expand Down

0 comments on commit 36a6cb9

Please sign in to comment.