Made it so the timer is more dynamic

This commit is contained in:
Tiago Ribeiro
2023-07-27 20:25:57 +01:00
parent d38ca76182
commit d879f4afab
7 changed files with 88 additions and 11 deletions

View File

@@ -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]);