diff --git a/frontend/src/pages/teacher/CreateProject.tsx b/frontend/src/pages/teacher/CreateProject.tsx index 96db51f2..f3ebd11c 100644 --- a/frontend/src/pages/teacher/CreateProject.tsx +++ b/frontend/src/pages/teacher/CreateProject.tsx @@ -20,7 +20,7 @@ export function CreateProject(): JSX.Element { const emptyProjectTeacher: ProjectTeacher = { projectId: -1, - courseName: data.courses[0].course_name, + courseName: data.courses.filter(course => !course.course_archived)[0].course_name, all_courses: data.courses, deadline: new Date(Date.now()), description: "", @@ -29,7 +29,7 @@ export function CreateProject(): JSX.Element { minutes: 0, amount_groups: 1, otherFilesAllow: false, - visible: false, + visible: true, archived: false, projectName: "", requiredFiles: {