From 51579c0ffb01d21c6be513b44be178ee7989b53e Mon Sep 17 00:00:00 2001 From: Yuki Ito <37338201+ykit00@users.noreply.github.com> Date: Tue, 13 Feb 2024 20:48:12 +0900 Subject: [PATCH] style: fix import and tidy up --- src/app/(withAuth)/courses/[courseId]/page.tsx | 3 +-- .../courses/[courseId]/programs/[programId]/page.tsx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/(withAuth)/courses/[courseId]/page.tsx b/src/app/(withAuth)/courses/[courseId]/page.tsx index 7abe6381..cd0cf0e0 100644 --- a/src/app/(withAuth)/courses/[courseId]/page.tsx +++ b/src/app/(withAuth)/courses/[courseId]/page.tsx @@ -32,8 +32,7 @@ import { programIdToName, } from '../../../../problems/problemData'; import { getLanguageIdFromSessionStorage, setLanguageIdToSessionStorage } from '../../../lib/SessionStorage'; - -import { getUserSolvedProblems } from '@/src/app/lib/actions'; +import { getUserSolvedProblems } from '../../../lib/actions'; const CoursePage: NextPage<{ params: { courseId: string } }> = ({ params }) => { const [selectedLanguageId, setSelectedLanguageId] = useState(''); diff --git a/src/app/(withAuth)/courses/[courseId]/programs/[programId]/page.tsx b/src/app/(withAuth)/courses/[courseId]/programs/[programId]/page.tsx index fee3672f..488ca42c 100644 --- a/src/app/(withAuth)/courses/[courseId]/programs/[programId]/page.tsx +++ b/src/app/(withAuth)/courses/[courseId]/programs/[programId]/page.tsx @@ -37,7 +37,6 @@ const ProblemPage: NextPage<{ params: { courseId: string; programId: string } }> }, [programId, selectedLanguageId]); const handleSolveProblem = async (): Promise => { - console.log('handleSolveProblem'); if (userId) { await createUserSolvedProblem(userId, courseId, programId, selectedLanguageId); }