Clean up debugger
This commit is contained in:
@@ -5,7 +5,6 @@ import { useUserContext } from '../Contexts/UserContext';
|
|||||||
export const ProtectedRoute = ({ render, ...others }) => {
|
export const ProtectedRoute = ({ render, ...others }) => {
|
||||||
const context = useUserContext();
|
const context = useUserContext();
|
||||||
const { token, setError } = context;
|
const { token, setError } = context;
|
||||||
debugger;
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
setError('Please sign in to access');
|
setError('Please sign in to access');
|
||||||
return <Redirect to="/" />;
|
return <Redirect to="/" />;
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ export default function SignInForm() {
|
|||||||
debugger;
|
debugger;
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
debugger;
|
|
||||||
setError(e.message);
|
setError(e.message);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user