Skip to content

Commit

Permalink
style: fix import and tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
ykit00 committed Feb 13, 2024
1 parent 46651a2 commit 51579c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/app/(withAuth)/courses/[courseId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const ProblemPage: NextPage<{ params: { courseId: string; programId: string } }>
}, [programId, selectedLanguageId]);

const handleSolveProblem = async (): Promise<void> => {
console.log('handleSolveProblem');
if (userId) {
await createUserSolvedProblem(userId, courseId, programId, selectedLanguageId);
}
Expand Down

0 comments on commit 51579c0

Please sign in to comment.