Skip to content

Commit

Permalink
Merge pull request #180 from cornell-dti/include-session-end
Browse files Browse the repository at this point in the history
Added edge case for no match session closed
  • Loading branch information
jewang25 authored Sep 26, 2023
2 parents 04390cb + 400842d commit 754e692
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/modules/Dashboard/Components/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export const Dashboard = () => {
if (!group) {
throw Error(`Student with email ${smail} not found in course ${courseId}`)
}
return !group.templateTimestamps['no-match-yet']
return (
!group.templateTimestamps['no-match-yet'] &&
!group.templateTimestamps['no-match-session-closed']
)
}

//Helper function that returns true if an unmatched student in a course doesn't have a no match email
Expand Down

0 comments on commit 754e692

Please sign in to comment.