From df603383526ce9f41917c43b9816d446aced315c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Sun, 26 Jun 2022 23:32:59 -0300 Subject: [PATCH] Remove unused status --- src/context/user.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/context/user.js b/src/context/user.js index c6242ca..4fa7cda 100644 --- a/src/context/user.js +++ b/src/context/user.js @@ -247,7 +247,6 @@ function UserProvider(props) { const { user } = useAuthState(); const { pathname } = useLocation(); const [state, setState] = useState({ - status: 'idle', user: null, error: null, pathname: '', @@ -257,13 +256,9 @@ function UserProvider(props) { setState({ user, pathname }); }, [user, pathname]); - const fetchClassrooms = () => { - return getClassrooms(user.id); - }; + const fetchClassrooms = () => getClassrooms(user.id); - const fetchAssignments = () => { - return getAssignments(user.id); - }; + const fetchAssignments = () => getAssignments(user.id); return (