Skip to content

Commit

Permalink
Enrollment - ensure next scheduled date/time is not in the past (#97)
Browse files Browse the repository at this point in the history
Co-authored-by: Amy Chen <amysbubble@MacBook-Pro-5.local>
  • Loading branch information
achen2401 and Amy Chen authored Jun 14, 2024
1 parent b82a35c commit a60e510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ScheduleSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,8 @@ export default class ScheduleSetup extends React.Component<
.filter(
(ucr: CommunicationRequest) =>
ucr.status === "active" &&
CommunicationRequest.isScheduledOutgoingMessage(ucr)
CommunicationRequest.isScheduledOutgoingMessage(ucr) &&
!dateInPast(ucr.occurrenceDateTime)
)
.sort((a, b) => {
let d1 = a.occurrenceDateTime;
Expand Down

0 comments on commit a60e510

Please sign in to comment.