diff --git a/common/app/routes/Challenges/views/step/Step.jsx b/common/app/routes/Challenges/views/step/Step.jsx index 1038350dda7..921af0b7973 100644 --- a/common/app/routes/Challenges/views/step/Step.jsx +++ b/common/app/routes/Challenges/views/step/Step.jsx @@ -167,23 +167,24 @@ 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; } const [imgUrl, imgAlt, info, action] = step; return ( -
+
( -
+ return steps.map(([ imgUrl, imgAlt, info ]) => ( +
{ 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,