Skip to content

Commit

Permalink
Merge pull request #510 from jayfo/followupdue
Browse files Browse the repository at this point in the history
Follow-Up Due Should Highlight After 1 Month
  • Loading branch information
jayfo authored May 28, 2024
2 parents bd01670 + 3f2837f commit 1f2c21c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web_registry/src/components/caseload/CaseloadTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
import {
addWeeks,
compareAsc,
differenceInDays,
differenceInMonths,
differenceInWeeks,
} from "date-fns";
Expand Down Expand Up @@ -657,7 +656,7 @@ export const CaseloadTable: FunctionComponent<ICaseloadTableProps> = observer(
})();
const nextSessionOverdue =
nextSessionDueDate &&
differenceInDays(todayDateUtc, nextSessionDueDate) >= 1;
differenceInMonths(todayDateUtc, nextSessionDueDate) >= 1;
const initialAtRisk =
phq9Entries &&
phq9Entries.length > 0 &&
Expand Down

0 comments on commit 1f2c21c

Please sign in to comment.