diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 6e5791df..4ab7ae81 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -261,7 +261,7 @@ class NewHeader extends Component { if(this.props.user&&this.props.user.login=== ""||this.props.user&&this.props.user===null||this.props.current_user&&this.props.current_user=== ""){ window.location.href = "/login"; - }else if(this.state.current_user&&this.state.current_user.login=== ""||this.state.current_user&&this.state.current_user=== ""){ + }else if(this.state.current_user=== ""){ window.location.href = "/login"; }else if(sum===1){ window.location.href = "/courses/new";