()
| 19 | |
| 20 | useEffect(() => { |
| 21 | const fetchQuestions = async () => { |
| 22 | try { |
| 23 | const questions = await getAllMCQsForProblem(problem.id); |
| 24 | setQuestions(questions); |
| 25 | } catch (error) { |
| 26 | console.error("Error fetching MCQ questions:", error); |
| 27 | } |
| 28 | }; |
| 29 | fetchQuestions(); |
| 30 | }, [problem.id]); |
| 31 |
no test coverage detected