Skip to content

Commit

Permalink
hover taken out and stats bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
angelmaciasr committed May 1, 2024
1 parent 5d08fdc commit c9e29a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 1 addition & 6 deletions webapp/src/components/Game/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
8 changes: 4 additions & 4 deletions webapp/src/components/stats/StatsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ export default function StatsTable() {
</tr>
</thead>
<tbody>
<tr className="body-row transition-transform duration-100 transform hover:text-green-500">
<tr className="body-row transition-transform duration-100 transform">
<td className="self-center text-2xl p-5">Correct Answers</td>
<td className="text-2xl p-5" data-testid="correct-answers">{questionsCorrect}</td>
</tr>
<tr className="body-row transition-transform duration-100 transform hover:text-green-500">
<tr className="body-row transition-transform duration-100 transform">
<td className="self-center text-2xl p-5 " >Wrong Answers</td>
<td className="text-2xl p-5 " data-testid="wrong-answers">{questionsAnswered - questionsCorrect}</td>
</tr>
<tr className="body-row transition-transform duration-100 transform hover:text-green-500">
<tr className="body-row transition-transform duration-100 transform">
<td className="self-center text-2xl p-5">Gained chesses</td>
<td className="text-2xl p-5" data-testid="chesses-gained">{chesses}</td>
</tr>
<tr className="body-row transition-transform duration-100 transform hover:text-green-500">
<tr className="body-row transition-transform duration-100 transform">
<td className="self-center text-2xl p-5 ">Percentage Correct</td>
<td style={{ padding: '5px' }}>
<CircularProgress
Expand Down

0 comments on commit c9e29a2

Please sign in to comment.