From ad32c2775437feca654d50be31f016ae7cab356b Mon Sep 17 00:00:00 2001 From: Kellan Wampler Date: Mon, 22 May 2023 00:13:50 -0400 Subject: [PATCH] Remove correct/incorrect coloring from path cards. --- src/components/gofp/GoFPPathCard.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/gofp/GoFPPathCard.tsx b/src/components/gofp/GoFPPathCard.tsx index e936068d..d164d78e 100644 --- a/src/components/gofp/GoFPPathCard.tsx +++ b/src/components/gofp/GoFPPathCard.tsx @@ -41,18 +41,18 @@ const PathCard = ({ const [status, setStatus] = useState(PathStatus.undecided); const [isSelected, setIsSelected] = useState(false); - useEffect(() => { - if (!correctPaths.data) { - return; - } - if (stageIdx < correctPaths.data?.length) { - setStatus( - correctPaths.data[stageIdx] === pathIdx + 1 ? PathStatus.correct : PathStatus.incorrect, - ); - } else { - setStatus(PathStatus.undecided); - } - }, [correctPaths.data, pathIdx, stageIdx]); + // useEffect(() => { + // if (!correctPaths.data) { + // return; + // } + // if (stageIdx < correctPaths.data?.length) { + // setStatus( + // correctPaths.data[stageIdx] === pathIdx + 1 ? PathStatus.correct : PathStatus.incorrect, + // ); + // } else { + // setStatus(PathStatus.undecided); + // } + // }, [correctPaths.data, pathIdx, stageIdx]); useEffect(() => { if (stageIdx + 1 === currentStage.data && pathIdx + 1 === selectedPath) {