Explorar o código

cardDate: fix ReceivedDate startAt coloring

Benjamin Andresen %!s(int64=5) %!d(string=hai) anos
pai
achega
d3ca816762
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/components/cards/cardDate.js

+ 1 - 1
client/components/cards/cardDate.js

@@ -237,7 +237,7 @@ class CardReceivedDate extends CardDate {
     const theDate = this.date.get();
     const theDate = this.date.get();
     // if dueAt, endAt and startAt exist & are > receivedAt, receivedAt doesn't need to be flagged
     // if dueAt, endAt and startAt exist & are > receivedAt, receivedAt doesn't need to be flagged
     if (
     if (
-      (startAt && theDate.isAfter(dueAt)) ||
+      (startAt && theDate.isAfter(startAt)) ||
       (endAt && theDate.isAfter(endAt)) ||
       (endAt && theDate.isAfter(endAt)) ||
       (dueAt && theDate.isAfter(dueAt))
       (dueAt && theDate.isAfter(dueAt))
     )
     )