Skip to content

Commit

Permalink
Fix setStep function call in CheckpointProblem component
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatehito committed Feb 6, 2024
1 parent cdc41c8 commit 648b629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(withAuth)/problems/[problemId]/CheckpointProblem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface CheckpointProblemProps {
setStep: (step: ProblemType) => void;
}

export const CheckpointProblem: React.FC<CheckpointProblemProps> = ({ problemId, setStep }) => {
export const CheckpointProblem: React.FC<CheckpointProblemProps> = ({ problemId }) => {
const turtleGraphicsRef = useRef<TurtleGraphicsHandle>(null);
const [selectedLanguageId, setSelectedLanguageId] = useState('');

Expand Down Expand Up @@ -50,7 +50,7 @@ export const CheckpointProblem: React.FC<CheckpointProblemProps> = ({ problemId,
setCurrentCheckPointLine(getCheckPointLines[getCheckPointLines.indexOf(currentCheckPointLine) + 1]);
} else {
alert('不正解です');
setStep('step');
// setStep('step');
}
};

Expand Down

0 comments on commit 648b629

Please sign in to comment.