Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
check if teacher
Browse files Browse the repository at this point in the history
  • Loading branch information
warreprovoost committed May 23, 2024
1 parent 5f80da2 commit d611c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Courses/CoursesDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function CoursesDetail() :JSX.Element {
studentMes: Me[];
me:Me;
};
if (loader.me.role == "TEACHER") {
if (loader.course.teacher === loader.me.uid) {
return <CourseDetailTeacher/>;
} else {
return <CourseDetailStudent/>;
Expand Down

0 comments on commit d611c18

Please sign in to comment.