Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
burakcan committed Jan 20, 2016
1 parent 7e06874 commit 8e4eff4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ var WalkThru = (function (_Component) {
var steps = _state2.steps;

if (!___portal) return null;
if (steps.length === 0) return null;

var current = steps[step - 1];

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Easy to use step-by-step site guide component for React.",
"main": "lib/index.js",
"scripts": {
"start-dev": "babel ./src --watch --out-dir ./lib & npm link && cd demo && npm install && npm link walkthru && npm run start-dev",
"start-dev": "babel ./src --watch --out-dir ./lib & cd demo && npm install && npm run start-dev",
"prebuild": "rm -rf lib/*",
"build": "babel ./src --out-dir ./lib",
"prepublish": "npm run build"
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export default class WalkThru extends Component {
const { show, step, steps } = this.state;

if (!___portal) return null;
if (steps.length === 0) return null;

const current = steps[step - 1];

Expand Down

0 comments on commit 8e4eff4

Please sign in to comment.