Skip to content

Commit 1f2c21c

Browse files
authored
Merge pull request #510 from jayfo/followupdue
Follow-Up Due Should Highlight After 1 Month
2 parents bd01670 + 3f2837f commit 1f2c21c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

web_registry/src/components/caseload/CaseloadTable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
import {
2121
addWeeks,
2222
compareAsc,
23-
differenceInDays,
2423
differenceInMonths,
2524
differenceInWeeks,
2625
} from "date-fns";
@@ -657,7 +656,7 @@ export const CaseloadTable: FunctionComponent<ICaseloadTableProps> = observer(
657656
})();
658657
const nextSessionOverdue =
659658
nextSessionDueDate &&
660-
differenceInDays(todayDateUtc, nextSessionDueDate) >= 1;
659+
differenceInMonths(todayDateUtc, nextSessionDueDate) >= 1;
661660
const initialAtRisk =
662661
phq9Entries &&
663662
phq9Entries.length > 0 &&

0 commit comments

Comments
 (0)