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="/" />;
|
||||
|
||||
Reference in New Issue
Block a user