Skip to content

Commit e54ccf9

Browse files
committed
stepForward error fix
1 parent cf7237b commit e54ccf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class App extends React.Component {
8585
}
8686

8787
stepForward = () => {
88-
if (this.state.currentStep === this.state.arraySteps.length - 1) return;
88+
if (this.state.currentStep === this.state.arraySteps.length) return;
8989
this.clearTimeouts();
9090

9191
let currentStep = this.state.currentStep + 1;

0 commit comments

Comments
 (0)