Skip to content

Commit

Permalink
name and purpose can’t be entered with a ‘ ’
Browse files Browse the repository at this point in the history
  • Loading branch information
sharathvignesh authored and sharathvignesh committed Jan 27, 2017
1 parent 2aa3b97 commit dd21a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reactJS/app/components/RegisterComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ class RegisterComponent extends Component {
stepIncrease() {
switch (this.props.stepIndex) {
case 0:
if (this.props.name.length === 0) {
if (this.props.name.length === 0 || this.props.name.trim() == '') {
this.props.dispatch(storeNameErrorLabel(this.props.languageJson.nameErrorLabelRequired));
} else if (this.props.purpose.length === 0) {
} else if (this.props.purpose.length === 0 || this.props.purpose.trim() == '') {
this.props.dispatch(storePurposeErrorLabel(this.props.languageJson.purposeErrorLabelRequired));
} else {
this.props.dispatch(stepIncrease(this.props.stepIndex));
Expand Down

0 comments on commit dd21a94

Please sign in to comment.