@@ -16,9 +16,9 @@ interface TeamMember {
1616}
1717
1818const questions = [
19- { category : '1' , keyword : '๊ด์ฌ์ฌ' , problem : '๋์ ๊ด์ฌ์ฌ๋ฅผ ๋ง์ถฐ์ฃผ์ธ์.' , options : [ 'Agentic AI' , 'AI Ethics' , 'AI Security' , 'Causal Inference' , 'Computer Graphics' , 'Computer Vision' , 'Efficient AI' , 'LLM/Multimodal' , 'Physical AI' , 'XAI' ] } ,
20- { category : '2' , keyword : '๊ณ์ ' , problem : '๋์ด ์ข์ํ๋ ๊ณ์ ์ ๋ง์ถฐ์ฃผ์ธ์.' , options : [ '๋ด' , '์ฌ๋ฆ' , '๊ฐ์' , '๊ฒจ์ธ' ] } ,
21- { category : '3' , keyword : 'MBTI' , problem : '๋์ MBTI ์ ํ์ ๋ง์ถฐ์ฃผ์ธ์.' , options : [ 'INFP' , 'ENFP' , 'INFJ' , 'ENFJ' , 'INTJ' , 'ENTJ' , 'INTP' , 'ENTP' , 'ISFP' , 'ESFP' , 'ISTP' , 'ESTP' , 'ISFJ' , 'ESFJ' , 'ISTJ' , 'ESTJ' ] } ,
19+ { category : '1' , keyword : '๊ด์ฌ์ฌ' , problem : '๋์ ๊ด์ฌ์ฌ๋ฅผ ๋ง์ถฐ์ฃผ์ธ์.' , options : [ 'Agentic AI' , 'AI Ethics' , 'AI Security' , 'Causal Inference' , 'Computer Graphics' , 'Computer Vision' , 'Efficient AI' , 'LLM/Multimodal' , 'Physical AI' , 'XAI' ] } ,
20+ { category : '2' , keyword : '๊ณ์ ' , problem : '๋์ด ์ข์ํ๋ ๊ณ์ ์ ๋ง์ถฐ์ฃผ์ธ์.' , options : [ '๋ด' , '์ฌ๋ฆ' , '๊ฐ์' , '๊ฒจ์ธ' ] } ,
21+ { category : '3' , keyword : 'MBTI' , problem : '๋์ MBTI ์ ํ์ ๋ง์ถฐ์ฃผ์ธ์.' , options : [ 'INFP' , 'ENFP' , 'INFJ' , 'ENFJ' , 'INTJ' , 'ENTJ' , 'INTP' , 'ENTP' , 'ISFP' , 'ESFP' , 'ISTP' , 'ESTP' , 'ISFJ' , 'ESFJ' , 'ISTJ' , 'ESTJ' ] } ,
2222] ;
2323
2424interface QuestionInfo {
@@ -41,7 +41,7 @@ const getJsonFromResponse = async (response: Response) => {
4141} ;
4242
4343export default function Page3 ( ) {
44- const { question, answer , challengeId, setAnswer, id, teamId, memberIds, setQuestion, setChallengeId, setProgressStatus, reset } = useFormStore ( ) ; // Destructure new state
44+ const { question, challengeId, setAnswer, id, teamId, memberIds, setQuestion, setChallengeId, setProgressStatus, reset } = useFormStore ( ) ; // Destructure new state
4545 const { setCurrentPage } = useNavigationStore ( ) ;
4646 const [ currentQuestionInfo , setCurrentQuestionInfo ] = useState < QuestionInfo | null > ( null ) ;
4747
@@ -51,10 +51,10 @@ export default function Page3() {
5151 if ( question ) {
5252 // Still need to set the question info for rendering options
5353 if ( ! currentQuestionInfo ) {
54- const loadedQuestionCategory = questions . find ( q => question . includes ( q . problem ) ) ;
55- if ( loadedQuestionCategory ) {
56- setCurrentQuestionInfo ( loadedQuestionCategory as QuestionInfo ) ; // Cast to QuestionInfo
57- }
54+ const loadedQuestionCategory = questions . find ( q => question . includes ( q . problem ) ) ;
55+ if ( loadedQuestionCategory ) {
56+ setCurrentQuestionInfo ( loadedQuestionCategory as QuestionInfo ) ; // Cast to QuestionInfo
57+ }
5858 }
5959 console . log ( 'Question already exists, skipping initialization.' ) ;
6060 return ;
0 commit comments