Fix lint errors

This commit is contained in:
RJevnikar 2018-06-13 22:26:45 +00:00
parent 67454d0491
commit edd2e9db3c

View file

@ -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)