fix: finish quiz tebak huruf

This commit is contained in:
mphstar 2025-03-12 00:11:43 +07:00
parent c7f37f589e
commit 2c9703f581
1 changed files with 15 additions and 15 deletions

View File

@ -160,23 +160,23 @@ const Quiz = () => {
noSoal++;
previousResult = [];
quizStore.setSoalIndex(noSoal);
}, 500);
if (noSoal === quizStore.listSoal.length) {
quizStore.setSession(false);
quizStore.setIsFinish(true);
if (noSoal === quizStore.listSoal.length) {
quizStore.setSession(false);
quizStore.setIsFinish(true);
Swal.fire({
title: "Loading",
text: "Proses menyimpan data...",
allowOutsideClick: false,
didOpen: () => {
Swal.showLoading();
},
});
Swal.fire({
title: "Loading",
text: "Proses menyimpan data...",
allowOutsideClick: false,
didOpen: () => {
Swal.showLoading();
},
});
navigate("/kuis/tebak-huruf");
}
navigate("/kuis/tebak-huruf");
}
}, 300);
}, 2000);
}