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
1 changed files with 1 additions and 1 deletions

View File

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