Skip to content
Snippets Groups Projects
Commit 0b63f62f authored by Alf Eaton's avatar Alf Eaton
Browse files

Only render AuthenticatedComponent children if authenticated

parent d6424dd9
No related branches found
No related tags found
1 merge request!116Only render AuthenticatedComponent children if authenticated
Pipeline #2757 passed with stage
in 1 minute and 51 seconds
......@@ -23,7 +23,7 @@ export class AuthenticatedComponent extends React.Component {
}
render() {
return this.props.children
return this.props.isAuthenticated ? this.props.children : null
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment