Skip to content

Commit

Permalink
Update error routes.
Browse files Browse the repository at this point in the history
  • Loading branch information
czetsuya committed Jun 26, 2019
1 parent e8f373b commit bc012ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/routing/SecureRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useContext, useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import Keycloak from 'keycloak-js';
import SecurityContext from './SecurityContext';
import { ProgressSpinner } from 'primereact/progressspinner';
import { EmptyPage } from '../../components/EmptyPage'

export const withSecurity = SecureComponent => props => {
Expand Down Expand Up @@ -35,9 +34,9 @@ export const withSecurity = SecureComponent => props => {
return <SecureComponent {...props} />;

} else {
return <Redirect to='/access' />;
return <Redirect to='/401' />;
}
}

return <EmptyPage></EmptyPage>;
return <Redirect to='/500' />;
};

0 comments on commit bc012ec

Please sign in to comment.