File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const QuizForm: FC<Props> = ({
2222 totalQuestions,
2323 link,
2424} ) => {
25- const { register, handleSubmit, reset , watch } = useForm ( ) ;
25+ const { register, handleSubmit, watch } = useForm ( ) ;
2626 const [ showCorrectAnswer , setShowCorrectAnswer ] = useState < {
2727 [ key : number ] : boolean ;
2828 } > ( { } ) ;
@@ -141,7 +141,6 @@ const QuizForm: FC<Props> = ({
141141 } else {
142142 handleNextQuestion ( currentQuestionIndex + 1 ) ;
143143 }
144- reset ( ) ;
145144 } ;
146145
147146 const isOptionCheckedWithoutReveal = (
@@ -211,7 +210,6 @@ const QuizForm: FC<Props> = ({
211210 value = { currentQuestionIndex }
212211 onChange = { ( e ) => {
213212 handleNextQuestion ( Number ( e . target . value ) ) ;
214- reset ( ) ;
215213 } }
216214 />
217215 < p className = "text-white text-md font-semibold text-center w-[40px] rounded-r-md border bg-slate-800 border-slate-700" >
@@ -323,7 +321,6 @@ const QuizForm: FC<Props> = ({
323321 recordShowCorrectAnswer ( ) ;
324322 setIsThinking ( true ) ;
325323 explainCorrectAnswer ( ) ;
326- reset ( ) ;
327324 } }
328325 >
329326 { isThinking ? "Thinking..." : "Explain" }
You can’t perform that action at this time.
0 commit comments