Skip to content

Commit

Permalink
fix(stepper transition)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed May 11, 2018
1 parent a1ff195 commit b78f342
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const StepTransition = ({ Component, onClick, next, prev, restart, to = 0
{({ stepTo, nextStep, prevStep, restartStep }) => {
const goToStep = next ? nextStep : prev ? prevStep : restart ? restartStep : () => stepTo(to)
const onClickAndGo = () => {
onClick()
onClick && onClick()
goToStep()
}
return (
Expand Down

0 comments on commit b78f342

Please sign in to comment.