From c92b528d2dc54cc67a3b6eb1b2490d0bf09a1681 Mon Sep 17 00:00:00 2001 From: danilych Date: Tue, 13 Feb 2024 11:46:49 +0100 Subject: [PATCH] fix(view-course): redirect to course preview --- app/routes/courses.$course.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/routes/courses.$course.tsx b/app/routes/courses.$course.tsx index 0c3d311..aa786ec 100644 --- a/app/routes/courses.$course.tsx +++ b/app/routes/courses.$course.tsx @@ -24,7 +24,6 @@ export default function Course() { useEffect(() => { let formData = new FormData() formData.append('CourseID', params.course as string) - formData.append('UserID', window.localStorage.getItem('userId') as string) dispatch(fetchCourse(formData)) window.localStorage.getItem('lectureID')