Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Abel <[email protected]>
  • Loading branch information
marco-qg and AbelMH1 authored Apr 12, 2024
1 parent ecacb79 commit cd51de1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions webapp/src/components/FirstGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,8 @@ const Quiz = () => {
const numberAnswer = allQuestions[currentQuestionIndex].options.indexOf(allQuestions[currentQuestionIndex].correctAnswer)
const botonCorrecta = document.getElementById('option-' + numberAnswer)
botonCorrecta.style.backgroundColor = 'green'
console.log("Antes de entrar al if", option)
if (option < 0 && !haveEnter) {
haveEnter = true
console.log("Me va a dar un telele")
questions.push({
title: allQuestions[currentQuestionIndex].question,
answers: allQuestions[currentQuestionIndex].options,
Expand Down

0 comments on commit cd51de1

Please sign in to comment.