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

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