Made it so the timer is more dynamic
This commit is contained in:
@@ -31,7 +31,6 @@ export default function MatchSentences({id, options, type, prompt, sentences, us
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
console.log({hasExamEnded});
|
||||
if (hasExamEnded) onNext({exercise: id, solutions: answers, score: calculateScore(), type});
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [hasExamEnded]);
|
||||
|
||||
Reference in New Issue
Block a user