Commit 0b63f62f authored by Alf Eaton's avatar Alf Eaton

Only render AuthenticatedComponent children if authenticated

parent d6424dd9
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
}
}
......
Markdown is supported
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