summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)