Skip to content
Snippets Groups Projects

is_authenticated, hide password and move styles

Merged Defendi Alberto requested to merge hide_password into master
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
@@ -25,12 +25,10 @@ export const PrivateRoute = ({
useEffect(() => {
const fetch = async (): Promise<unknown> => {
const result = await axios('/api/web/login/is_authenticated');
// FIX: Remove negation and use true server data
setAuth(!result.data.is_authenticated);
setAuth(result.data.is_authenticated);
setLoading(true);
return null;
};
fetch();
}, []);
Loading