fix: finish quiz tebak huruf
This commit is contained in:
parent
c7f37f589e
commit
2c9703f581
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue