Skip to content

Commit

Permalink
Fixed Inactive Student Display
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-lin12 committed Nov 26, 2023
1 parent bde2483 commit 8d6e3ab
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 132 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/UserTables/StudentsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const StudentsTable = ({ searchName }: studentTableProps) => {
(r.firstName + ' ' + r.lastName)
.toLowerCase()
.includes((searchName + '').toLowerCase()) &&
(showInactive ? true : r.active)
(!showInactive || !r.active)
);

return (
Expand Down
Loading

0 comments on commit 8d6e3ab

Please sign in to comment.