From c6fa7c2f408ccb168a2c07b59956e398ca416ed1 Mon Sep 17 00:00:00 2001 From: junhyeon0218 Date: Mon, 9 Sep 2024 17:43:07 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20=EB=AF=B8=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EB=B3=80=EC=88=98=20=EC=A0=9C=EA=B1=B0=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/fti/FtiResultId.tsx | 2 +- src/pages/fti/FtiTest.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/fti/FtiResultId.tsx b/src/pages/fti/FtiResultId.tsx index 7b925c7..0f166c3 100644 --- a/src/pages/fti/FtiResultId.tsx +++ b/src/pages/fti/FtiResultId.tsx @@ -22,7 +22,7 @@ const { Kakao } = window; const FtiResultId = () => { const navigate = useNavigate(); const location = useLocation(); - const { ftiType, ftiImage, description } = location.state || {}; + const { ftiImage, description } = location.state || {}; const [parsedDescription, setParsedDescription] = useState(null); diff --git a/src/pages/fti/FtiTest.tsx b/src/pages/fti/FtiTest.tsx index f62ebb2..c4b2ebf 100644 --- a/src/pages/fti/FtiTest.tsx +++ b/src/pages/fti/FtiTest.tsx @@ -21,7 +21,6 @@ const FtiTest = () => { const getQuestion = async () => { try { const data = await getFtiQuestions(); - console.log('FTI questions:', data); const formattedData = formatQuestion(data); const formattedImages = formatQuestionImage(data); setQuestions(formattedData); @@ -33,6 +32,7 @@ const FtiTest = () => { }; useEffect(() => { + console.log(results); getQuestion(); }, []);