chore(step-redux): Remove console.log

This commit is contained in:
Stuart Taylor
2017-12-28 18:59:04 +00:00
parent a3a9683bf7
commit 0f68940865
2 changed files with 12 additions and 14 deletions

View File

@ -167,16 +167,17 @@ export class StepChallenge extends PureComponent {
); );
} }
renderStep({ renderStep(
clickOnImage, {
completeAction, clickOnImage,
currentIndex, completeAction,
isActionCompleted, currentIndex,
isLastStep, isActionCompleted,
numOfSteps, isLastStep,
step, numOfSteps,
stepBackward, step,
stepForward stepBackward,
stepForward
}) { }) {
if (!Array.isArray(step)) { if (!Array.isArray(step)) {
return null; return null;

View File

@ -63,10 +63,7 @@ export const actionCompletedSelector = state => getNS(state).isActionCompleted;
export default handleActions( export default handleActions(
() => ({ () => ({
[challenges.challengeUpdated]: () => { [challenges.challengeUpdated]: () => initialState,
console.log('updating step ui');
return initialState;
},
[types.goToStep]: (state, { payload: { step = 0, isUnlocked }}) => ({ [types.goToStep]: (state, { payload: { step = 0, isUnlocked }}) => ({
...state, ...state,
currentIndex: step, currentIndex: step,