diff --git a/common/app/routes/Challenges/views/step/Step.jsx b/common/app/routes/Challenges/views/step/Step.jsx index 03634c7cad..921af0b797 100644 --- a/common/app/routes/Challenges/views/step/Step.jsx +++ b/common/app/routes/Challenges/views/step/Step.jsx @@ -167,16 +167,17 @@ export class StepChallenge extends PureComponent { ); } - renderStep({ - clickOnImage, - completeAction, - currentIndex, - isActionCompleted, - isLastStep, - numOfSteps, - step, - stepBackward, - stepForward + renderStep( + { + clickOnImage, + completeAction, + currentIndex, + isActionCompleted, + isLastStep, + numOfSteps, + step, + stepBackward, + stepForward }) { if (!Array.isArray(step)) { return null; diff --git a/common/app/routes/Challenges/views/step/redux/index.js b/common/app/routes/Challenges/views/step/redux/index.js index 98d0ac9dc1..c9c13f89ac 100644 --- a/common/app/routes/Challenges/views/step/redux/index.js +++ b/common/app/routes/Challenges/views/step/redux/index.js @@ -63,10 +63,7 @@ export const actionCompletedSelector = state => getNS(state).isActionCompleted; export default handleActions( () => ({ - [challenges.challengeUpdated]: () => { - console.log('updating step ui'); - return initialState; - }, + [challenges.challengeUpdated]: () => initialState, [types.goToStep]: (state, { payload: { step = 0, isUnlocked }}) => ({ ...state, currentIndex: step,