Skip to content

Commit

Permalink
Fix import and useEffect dependencies in App.js, Statistics.js, and L…
Browse files Browse the repository at this point in the history
…ogin.js
  • Loading branch information
UO285267 committed Apr 7, 2024
1 parent 3c980e3 commit 39672bc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from 'react';
import { BrowserRouter as Router, Route } from "react-router-dom";
import Navbar from "./components/Navbar";
import AuthProvider from './components/login/AuthProvider';
import Routes from './components/Routes';

Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/Statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Statistics= () => {
.catch(error => {
setError('Ha habido un error cargando las estadísticas');
});
}, []);
}, [gatewayEndpoint]);


return (
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Login = () => {
}, 2000);
localStorage.setItem('username', username);
}
}, [loginSuccess],
}, [loginSuccess, username],
);


Expand Down

0 comments on commit 39672bc

Please sign in to comment.