Skip to content

Commit

Permalink
fixed #153
Browse files Browse the repository at this point in the history
  • Loading branch information
zeel-swiggy committed Oct 7, 2019
1 parent 32d29b6 commit 956b771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function (_Component) {
} else {
// check if isValidated was exposed in the step, if yes then set initial state as not validated (false) or vice versa
// if HOCValidation is used for the step then mark it as "requires to be validated. i.e. false"
i.validated = i.component.type && i.component.type.prototype && i.component.type.prototype.isValidated && _this2.isStepAtIndexHOCValidationBased(idx) ? false : true;
i.validated = i.component.type && i.component.type.prototype && i.component.type.prototype.isValidated && !_this2.isStepAtIndexHOCValidationBased(idx) ? false : true;
}

return i;
Expand All @@ -94,7 +94,6 @@ function (_Component) {
}

return {
current: indx,
styles: styles
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class StepZilla extends Component {
} else {
// check if isValidated was exposed in the step, if yes then set initial state as not validated (false) or vice versa
// if HOCValidation is used for the step then mark it as "requires to be validated. i.e. false"
i.validated = i.component.type && i.component.type.prototype && i.component.type.prototype.isValidated && this.isStepAtIndexHOCValidationBased(idx) ? false : true;
i.validated = i.component.type && i.component.type.prototype && i.component.type.prototype.isValidated && !this.isStepAtIndexHOCValidationBased(idx) ? false : true;
}

return i;
Expand All @@ -50,7 +50,7 @@ export default class StepZilla extends Component {
}
}

return { current: indx, styles };
return { styles };
}

getPrevNextBtnLayout(currentStep) {
Expand Down

0 comments on commit 956b771

Please sign in to comment.