MCPcopy Create free account
hub / github.com/code100x/daily-code / handleOnSubmit

Function handleOnSubmit

apps/web/components/mcq/MCQQuestion.tsx:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 }, [isSubmitted]);
41
42 const handleOnSubmit = () => {
43 setisSubmitted(true);
44 if (selectedOption === question.correctOption) {
45 } else {
46 setIsCorrect(false);
47 }
48 };
49
50 useEffect(() => {
51 setSelectedOption(null);

Callers 1

MCQQuestionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected