summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDate.js
diff options
context:
space:
mode:
authorRJevnikar <12701645+rjevnikar@users.noreply.github.com>2018-06-13 22:26:45 +0000
committerRJevnikar <12701645+rjevnikar@users.noreply.github.com>2018-06-13 22:26:45 +0000
commitedd2e9db3ca070c87c47a14a3458184ceb5edb34 (patch)
tree1ba450d38a5855b8eb40f95ed5554c889148ee00 /client/components/cards/cardDate.js
parent67454d0491ca17e61eb50034ecb5d03c85dd5abe (diff)
downloadwekan-edd2e9db3ca070c87c47a14a3458184ceb5edb34.tar.gz
wekan-edd2e9db3ca070c87c47a14a3458184ceb5edb34.tar.bz2
wekan-edd2e9db3ca070c87c47a14a3458184ceb5edb34.zip
Fix lint errors
Diffstat (limited to 'client/components/cards/cardDate.js')
-rw-r--r--client/components/cards/cardDate.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/components/cards/cardDate.js b/client/components/cards/cardDate.js
index 83cc1424..c3e0524d 100644
--- a/client/components/cards/cardDate.js
+++ b/client/components/cards/cardDate.js
@@ -279,11 +279,11 @@ class CardDueDate extends CardDate {
classes() {
let classes = 'due-date' + ' ';
- // if endAt exists & is < dueAt, dueAt doesn't need to be flagged
- if ((this.data().endAt != 0) &&
- (this.data().endAt != null) &&
- (this.data().endAt != '') &&
- (this.data().endAt != undefined) &&
+ // if endAt exists & is < dueAt, dueAt doesn't need to be flagged
+ if ((this.data().endAt !== 0) &&
+ (this.data().endAt !== null) &&
+ (this.data().endAt !== '') &&
+ (this.data().endAt !== undefined) &&
(this.date.get().isBefore(this.data().endAt)))
classes += 'current';
else if (this.now.get().diff(this.date.get(), 'days') >= 2)