Fix project name blank issue (#1271)

* Fix project name blank issue

* Change length check from !length to length === 0
This commit is contained in:
Shakti Singh 2020-04-01 23:17:08 +05:30 committed by GitHub
parent 2744ea4334
commit eeb7e345f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ class Toolbar extends React.Component {
} }
validateProjectName() { validateProjectName() {
if (this.props.project.name === '') { if ((this.props.project.name.trim()).length === 0) {
this.props.setProjectName(this.originalProjectName); this.props.setProjectName(this.originalProjectName);
} }
} }