Skip to content

Commit

Permalink
removed not used var
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg committed Mar 14, 2024
1 parent 9564ba2 commit 7b81f18
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions webapp/src/components/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ function shuffleArray(array) {


const Menu = () => {

const [n_preguntas, setn_preguntas] = useState(5);

const navigation = useNavigate(); // Añade esto

const initiateGame = async () => {
Expand All @@ -65,7 +62,6 @@ const Menu = () => {

const getQuestions = async () => {
try {
setn_preguntas(5)
const response = await axios.get(`${apiEndpoint}/questions`);
console.log(response.data.length)
for (var i = 0; i < response.data.length; i++) {
Expand Down

0 comments on commit 7b81f18

Please sign in to comment.