diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index 68e1ebab..75fa9e97 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -168,7 +168,7 @@ export function TPMIndexHOC(WrappedComponent) { }) console.log("11:",response.data); if(response.data && response.data.login){ - if(response.data.has_gitea_user && response.data.has_gitea_user===false){ + if(!response.data.has_gitea_user){ this.setState({ giteaVisible:true, email:response.data.email