From e0cfe8722a57d5207956cfe484bbca35f6021e5c Mon Sep 17 00:00:00 2001 From: ZL Asica <40444637+ZL-Asica@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:53:55 -0500 Subject: [PATCH] fix: Just registered users show up before their profile stetted up. --- src/components/Home/StudentList.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Home/StudentList.jsx b/src/components/Home/StudentList.jsx index 10355dc..dfe4e64 100644 --- a/src/components/Home/StudentList.jsx +++ b/src/components/Home/StudentList.jsx @@ -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))) &&