diff --git a/webapp/src/components/Game.js b/webapp/src/components/Game.js index ccbda51e..005d7ade 100644 --- a/webapp/src/components/Game.js +++ b/webapp/src/components/Game.js @@ -1,4 +1,3 @@ - import React, { useState, useEffect } from 'react'; import axios from 'axios'; import { Container, Typography, Button, Paper} from '@mui/material'; @@ -15,7 +14,6 @@ const Game = () => { const [correctOption, setCorrectOption] = useState(''); const [answerOptions, setAnswerOptions] = useState([]); const [correctCounter, setCorrectCounter] = useState(0); - const [numberOfOptions, setNumberOfOptions] = useState(); const [questionCounter, setQuestionCounter] = useState(0); const [incorrectCounter, setIncorrectCounter] = useState(0); @@ -27,7 +25,7 @@ const Game = () => { useEffect(() => { handleShowQuestion(); - }, []); + }); useEffect(() => { diff --git a/webapp/src/components/HistoricalData.js b/webapp/src/components/HistoricalData.js index 904836c4..6e746026 100644 --- a/webapp/src/components/HistoricalData.js +++ b/webapp/src/components/HistoricalData.js @@ -1,7 +1,7 @@ import axios from 'axios'; import React, { useState} from 'react'; import { useNavigate} from 'react-router-dom'; -import { Container, Typography, Button} from '@mui/material'; +import { Container, Button} from '@mui/material'; const HistoricalData = () => { const navigate = useNavigate();