- saving progress;
This commit is contained in:
@@ -3,6 +3,7 @@ import { Navigate, Outlet } from 'react-router-dom';
|
||||
|
||||
// tools
|
||||
import AuthenticationService from '../../service/authentication-service';
|
||||
import ErrorBoundary from '../ErrorBoundary';
|
||||
|
||||
const ProtectedRoute = () => {
|
||||
|
||||
@@ -22,7 +23,7 @@ const ProtectedRoute = () => {
|
||||
return (<Navigate to={'/'} replace/>);
|
||||
}*/
|
||||
|
||||
return <Outlet/>;
|
||||
return <ErrorBoundary><Outlet/></ErrorBoundary>;
|
||||
}
|
||||
|
||||
export default ProtectedRoute;
|
||||
Reference in New Issue
Block a user