Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
update deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
ALBERICLOOS committed May 23, 2024
1 parent 8cfbd8d commit a3eb849
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/student/CoursesViewStudent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function CoursesViewStudent(): JSX.Element {
const tableCoursesActive: TableRowCourses[] = active_courses.map((course: properCourse) => {

let deadline = "-"
if (course.first_deadline) {
if (course.first_deadline !== "-") {
deadline = deadline_to_string(course.first_deadline)
}

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/teacher/CoursesViewTeacher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export default function CoursesViewTeacher(): JSX.Element {

const tableCoursesActive: TableRowCourses[] = active_courses.map(course => {
let deadline = "-"
if (course.first_deadline) {

if (course.first_deadline !== "-") {
deadline = deadline_to_string(course.first_deadline)
}

Expand Down

0 comments on commit a3eb849

Please sign in to comment.