Merge pull request #3749 from listenerri/patch-1

Fix: The bg color of start at button is almost-due
This commit is contained in:
Lauri Ojansivu 2021-04-22 14:44:34 +03:00 committed by GitHub
commit 0e35dcd5ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,6 @@ class CardStartDate extends CardDate {
// if dueAt or endAt exist & are > startAt, startAt doesn't need to be flagged
if ((endAt && theDate.isAfter(endAt)) || (dueAt && theDate.isAfter(dueAt)))
classes += 'long-overdue';
else if (theDate.isBefore(now, 'minute')) classes += 'almost-due';
else classes += 'current';
return classes;
}