Skip to content
Snippets Groups Projects
Commit 9646ee2c authored by MoSelim's avatar MoSelim
Browse files

#488

parent b84eac59
No related branches found
No related tags found
2 merge requests!114Shared data model,!115Dev
......@@ -7,7 +7,7 @@ import PrivacyNoticeChange from './PrivacyNoticeChange'
const AuthenticatedComponent = ({ children, location }) => (
<UserContext.Consumer>
{currentUser => {
if (currentUser.privacyNoticeReviewRequired) {
if (currentUser && currentUser.privacyNoticeReviewRequired) {
return <PrivacyNoticeChange currentUser={currentUser} />
}
if (!currentUser || !localStorage.getItem('token')) {
......
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