From 2c9703f5812eeb4ca9ce915f85a94b4b45b08dc3 Mon Sep 17 00:00:00 2001 From: mphstar Date: Wed, 12 Mar 2025 00:11:43 +0700 Subject: [PATCH] fix: finish quiz tebak huruf --- src/pages/Kuis/TebakHuruf/Quiz.tsx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/pages/Kuis/TebakHuruf/Quiz.tsx b/src/pages/Kuis/TebakHuruf/Quiz.tsx index 2c1e20a..dae9531 100644 --- a/src/pages/Kuis/TebakHuruf/Quiz.tsx +++ b/src/pages/Kuis/TebakHuruf/Quiz.tsx @@ -153,30 +153,30 @@ const Quiz = () => { setTimeout(() => { setShowAnswer(false); - + setTimeout(() => { isLoading = false; setProgress(0); 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); }