From 648b629cd93c0421745aaf373f572839bb7a0110 Mon Sep 17 00:00:00 2001 From: Kento Sato Date: Tue, 6 Feb 2024 09:50:32 +0900 Subject: [PATCH] Fix setStep function call in CheckpointProblem component --- src/app/(withAuth)/problems/[problemId]/CheckpointProblem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(withAuth)/problems/[problemId]/CheckpointProblem.tsx b/src/app/(withAuth)/problems/[problemId]/CheckpointProblem.tsx index 2aa80238..6b5f5813 100644 --- a/src/app/(withAuth)/problems/[problemId]/CheckpointProblem.tsx +++ b/src/app/(withAuth)/problems/[problemId]/CheckpointProblem.tsx @@ -15,7 +15,7 @@ interface CheckpointProblemProps { setStep: (step: ProblemType) => void; } -export const CheckpointProblem: React.FC = ({ problemId, setStep }) => { +export const CheckpointProblem: React.FC = ({ problemId }) => { const turtleGraphicsRef = useRef(null); const [selectedLanguageId, setSelectedLanguageId] = useState(''); @@ -50,7 +50,7 @@ export const CheckpointProblem: React.FC = ({ problemId, setCurrentCheckPointLine(getCheckPointLines[getCheckPointLines.indexOf(currentCheckPointLine) + 1]); } else { alert('不正解です'); - setStep('step'); + // setStep('step'); } };