From 7b81f187ac198a0de24d10b3ee6e4c4d847ef390 Mon Sep 17 00:00:00 2001 From: Marco Quintana Date: Thu, 14 Mar 2024 14:59:53 +0100 Subject: [PATCH] removed not used var --- webapp/src/components/Menu.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/webapp/src/components/Menu.js b/webapp/src/components/Menu.js index f2d1d9a7..f3701104 100644 --- a/webapp/src/components/Menu.js +++ b/webapp/src/components/Menu.js @@ -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 () => { @@ -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++) {