summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-11-04 09:59:40 +0200
committerLauri Ojansivu <x@xet7.org>2019-11-04 09:59:40 +0200
commitb56ddf9df9a3719fd29bd8b777decc37773779b6 (patch)
tree737977e6c6d8ec988f22904c742b1abdce6aa6b5 /client/components/cards
parent9a468dfce53db3f5183df22183718d356fc9ad1d (diff)
downloadwekan-b56ddf9df9a3719fd29bd8b777decc37773779b6.tar.gz
wekan-b56ddf9df9a3719fd29bd8b777decc37773779b6.tar.bz2
wekan-b56ddf9df9a3719fd29bd8b777decc37773779b6.zip
Fix prettier
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/cardDate.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/cards/cardDate.js b/client/components/cards/cardDate.js
index a298fbab..cb54b033 100644
--- a/client/components/cards/cardDate.js
+++ b/client/components/cards/cardDate.js
@@ -344,9 +344,9 @@ class CardEndDate extends CardDate {
let classes = 'end-date' + ' ';
const dueAt = this.data().getDue();
const theDate = this.date.get();
- if (!dueAt) classes += ''
- else if (theDate.isBefore(dueAt)) classes += 'current'
- else if (theDate.isAfter(dueAt)) classes += 'due'
+ if (!dueAt) classes += '';
+ else if (theDate.isBefore(dueAt)) classes += 'current';
+ else if (theDate.isAfter(dueAt)) classes += 'due';
return classes;
}