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