Skip to content

Commit

Permalink
fix(courses): add course to teaching screen
Browse files Browse the repository at this point in the history
  • Loading branch information
emacoricciati committed Jan 22, 2025
1 parent a0c2346 commit 3081bfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/teaching/screens/TeachingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { useGetSurveyCategories } from '../../../core/queries/surveysHooks';
import { GlobalStyles } from '../../../core/styles/GlobalStyles';
import { formatFinalGrade } from '../../../utils/grades';
import { CourseListItem } from '../../courses/components/CourseListItem';
import { isCourseDetailed } from '../../courses/utils/courses';
import { ExamListItem } from '../components/ExamListItem';
import { ProgressChart } from '../components/ProgressChart';
import { SurveyTypesSection } from '../components/SurveyTypesSection';
Expand All @@ -66,7 +67,7 @@ export const TeachingScreen = ({ navigation }: Props) => {

return coursesQuery.data.filter(
c =>
c.id &&
isCourseDetailed(c) &&
c.uniqueShortcode &&
!coursePreferences[c.uniqueShortcode]?.isHidden,
);
Expand Down

0 comments on commit 3081bfa

Please sign in to comment.