Skip to content

Commit

Permalink
Intento arreglo de tests 18, encontrando todos los errores
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289039 committed Mar 14, 2024
1 parent 8501a63 commit f3f60f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Login = ({sendLogin, sendUsername}) => {
const [openSnackbar, setOpenSnackbar] = useState(false);

const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000';
//sendLogin(loginSuccess);
sendLogin(loginSuccess);
const loginUser = async () => {
try {
const response = await axios.post(`${apiEndpoint}/login`, { username, password });
Expand All @@ -23,7 +23,7 @@ const Login = ({sendLogin, sendUsername}) => {

setCreatedAt(userCreatedAt);
setLoginSuccess(true);
sendLogin(loginSuccess); //dmfskdskmfmfdkm
sendLogin(loginSuccess);
sendUsername(username);
setOpenSnackbar(true);
} catch (error) {
Expand Down

0 comments on commit f3f60f0

Please sign in to comment.