Skip to content

Commit

Permalink
require at least one degree to save
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Sep 11, 2024
1 parent 68d5f75 commit 5b2ec52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clientv2/src/pages/student/StudentProfile.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b2ec52

Please sign in to comment.