Skip to content

Commit

Permalink
Fixed checkbox problem
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg committed Apr 24, 2024
1 parent 47118a2 commit 1aee7dd
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions webapp/src/components/game/GameConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,25 +113,13 @@ const GameConfiguration = () => {
type="checkbox"
id={`t${index}`}
value={option}
checked={tematicasSeleccionadas.includes({option})}
// checked={tematicasSeleccionadas.includes({option})}
onChange={handleTematicaChange}
/>
<label htmlFor={`tematica-${index}`}>{option}</label>
<label htmlFor={`t${index}`}>{option}</label>
</div>
)
)}


<div>
<input
type="checkbox"
id="t5"
value="Ciencia"
checked={tematicasSeleccionadas.includes('Ciencia')}
onChange={handleTematicaChange}
/>
<label htmlFor="tematica2">Ciencia</label>
</div>
</div>


Expand Down

0 comments on commit 1aee7dd

Please sign in to comment.