diff --git a/webapp/src/components/AddUser.js b/webapp/src/components/AddUser.js index 8c70296..6360b9a 100644 --- a/webapp/src/components/AddUser.js +++ b/webapp/src/components/AddUser.js @@ -11,8 +11,6 @@ const AddUser = ({isLogged}) => { const [error, setError] = useState(''); const [openSnackbar, setOpenSnackbar] = useState(false); -console.log("ADDUSER: " + isLogged) - const addUser = async () => { try { await axios.post(`${apiEndpoint}/adduser`, { username, password }); diff --git a/webapp/src/components/Login.js b/webapp/src/components/Login.js index ae113b2..8783787 100644 --- a/webapp/src/components/Login.js +++ b/webapp/src/components/Login.js @@ -11,7 +11,7 @@ const Login = ({isLogged, setIsLogged}) => { const [openSnackbar, setOpenSnackbar] = useState(false); const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000'; -console.log("LOGIN: " + isLogged) + const loginUser = async () => { try { const response = await axios.post(`${apiEndpoint}/login`, { username, password }); diff --git a/webapp/src/components/Pages/Home.js b/webapp/src/components/Pages/Home.js index 8d5b5df..1328116 100644 --- a/webapp/src/components/Pages/Home.js +++ b/webapp/src/components/Pages/Home.js @@ -8,7 +8,6 @@ import { useNavigate } from 'react-router-dom'; const Home = ({isLogged, setIsLogged}) => { // Utilizamos el hook useNavigate para la navegación const navigate = useNavigate(); - console.log("HOME: " + isLogged) // Definimos la función que se ejecutará al hacer clic en el botón "Jugar" const clickJugar = () => {