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

update deadline bug #391

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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