diff --git a/src/forge/New/Index.js b/src/forge/New/Index.js index 03269751b..1f179653e 100644 --- a/src/forge/New/Index.js +++ b/src/forge/New/Index.js @@ -95,12 +95,15 @@ class Index extends Component { this.setOptionsList(owner, 'owners'); } }).catch(error=>{}) - - if(!this.props.current_user.has_gitea_user || (this.props.current_user.has_gitea_user && !this.props.current_user.is_sync_pwd)){ - this.setState({ - giteaVisible:true - }) - } + + if(this.props.checkIfLogin()){ + if(!this.props.current_user.has_gitea_user || (this.props.current_user.has_gitea_user && !this.props.current_user.is_sync_pwd)){ + this.setState({ + giteaVisible:true + }) + } + } + }