From c9e29a207aac76baad9c8e5b2ac705d59320e73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Mac=C3=ADas?= Date: Wed, 1 May 2024 16:58:51 +0200 Subject: [PATCH] hover taken out and stats bug fix --- webapp/src/components/Game/Game.tsx | 7 +------ webapp/src/components/stats/StatsTable.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/webapp/src/components/Game/Game.tsx b/webapp/src/components/Game/Game.tsx index 7e45f9c..0142ce2 100644 --- a/webapp/src/components/Game/Game.tsx +++ b/webapp/src/components/Game/Game.tsx @@ -72,16 +72,11 @@ export default function Game(props: Props) { const handleNextQuestion = () => { if(count===0) saveAnswer(' '); - var q = questionCount; - if(questionCount < 9){ setTimeout(() => { - if(q === questionCount) goToNextQuestion(); }, 3000); - }else{ - goToNextQuestion(); - } + }; const saveAnswer = (answer: string) => { diff --git a/webapp/src/components/stats/StatsTable.tsx b/webapp/src/components/stats/StatsTable.tsx index 3da8411..5e906b0 100644 --- a/webapp/src/components/stats/StatsTable.tsx +++ b/webapp/src/components/stats/StatsTable.tsx @@ -38,19 +38,19 @@ export default function StatsTable() { - + Correct Answers {questionsCorrect} - + Wrong Answers {questionsAnswered - questionsCorrect} - + Gained chesses {chesses} - + Percentage Correct