From 5b2ec52457449f43efcd49f369d258c519932c15 Mon Sep 17 00:00:00 2001 From: Dev Singh Date: Wed, 11 Sep 2024 11:05:13 -0500 Subject: [PATCH] require at least one degree to save --- clientv2/src/pages/student/StudentProfile.page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clientv2/src/pages/student/StudentProfile.page.tsx b/clientv2/src/pages/student/StudentProfile.page.tsx index f26a44a..e4c9719 100644 --- a/clientv2/src/pages/student/StudentProfile.page.tsx +++ b/clientv2/src/pages/student/StudentProfile.page.tsx @@ -211,6 +211,9 @@ export function StudentHomePage() { if (!isValidGithubProfile(studentData?.github)) { return showErrorSaveNotification('GitHub field is not a valid GitHub Profile URL.'); } + if (studentData.degrees.length == 0) { + return showErrorSaveNotification('You must specify at least one degree.') + } try { if (file && file.size !== 0) { setLoading(true);