summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDate.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-08-11 01:00:21 +0200
committerAndrés Manelli <andresmanelli@gmail.com>2018-08-11 01:00:21 +0200
commit17308dc5f306e9b357045e97e0a1abe963dcb5d4 (patch)
tree3e7c9a4379d48da68ccf6e527525c2b67c1f85ba /client/components/cards/cardDate.js
parent67301e07e277f715de1b9d909e53f0875140e4af (diff)
downloadwekan-17308dc5f306e9b357045e97e0a1abe963dcb5d4.tar.gz
wekan-17308dc5f306e9b357045e97e0a1abe963dcb5d4.tar.bz2
wekan-17308dc5f306e9b357045e97e0a1abe963dcb5d4.zip
Fix lint errors
Diffstat (limited to 'client/components/cards/cardDate.js')
-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 e38143d5..182705d5 100644
--- a/client/components/cards/cardDate.js
+++ b/client/components/cards/cardDate.js
@@ -337,11 +337,11 @@ class CardEndDate extends CardDate {
let classes = 'end-date' + ' ';
const dueAt = this.data().getDue();
const theDate = this.date.get();
- if (this.date.get().diff(this.data().getDue(), 'days') >= 2)
+ if (theDate.diff(dueAt, 'days') >= 2)
classes += 'long-overdue';
- else if (this.date.get().diff(this.data().getDue(), 'days') >= 0)
+ else if (theDate.diff(dueAt, 'days') >= 0)
classes += 'due';
- else if (this.date.get().diff(this.data().getDue(), 'days') >= -2)
+ else if (theDate.diff(dueAt, 'days') >= -2)
classes += 'almost-due';
return classes;
}