fix: 퀴즈 종료 메시지 안보이는 문제 수정

This commit is contained in:
jhynsoo 2024-08-06 17:44:11 +09:00
parent 3d037460f7
commit d5fb731346

View File

@ -52,7 +52,7 @@ export default function QuizSet({ quizSetId, finish }) {
return 0; return 0;
} }
if (prev + 1 === quizList.length) { if (prev === quizList.length) {
submit(answers.current); submit(answers.current);
return Infinity; return Infinity;
} }