Skip to content

Commit

Permalink
fix: Just registered users show up before their profile stetted up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Oct 17, 2024
1 parent 2776139 commit e0cfe87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Home/StudentList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export default function StudentList({
(profile) =>
profile.uid !== userProfile.uid &&
!matchedUserUids.has(profile.uid) &&
profile.major !== '' &&
profile.year !== '' &&
(selectedMajors.length === 0 || selectedMajors.includes(profile.major)) &&
(selectedCourses.length === 0 ||
profile.courses?.some((course) => selectedCourses.includes(course))) &&
Expand Down

0 comments on commit e0cfe87

Please sign in to comment.