Moves to next challenges
This commit is contained in:
@@ -19,7 +19,8 @@ const initialState = {
|
||||
previousStep: -1,
|
||||
filter: '',
|
||||
files: {},
|
||||
superBlocks: []
|
||||
superBlocks: [],
|
||||
toast: 0
|
||||
};
|
||||
|
||||
const mainReducer = handleActions(
|
||||
@@ -45,6 +46,10 @@ const mainReducer = handleActions(
|
||||
...state,
|
||||
tests: state.tests.map(test => ({ ...test, err: false, pass: false }))
|
||||
}),
|
||||
[types.showChallengeComplete]: (state, { payload: toast }) => ({
|
||||
...state,
|
||||
toast
|
||||
}),
|
||||
|
||||
// map
|
||||
[types.updateFilter]: (state, { payload = ''}) => ({
|
||||
|
Reference in New Issue
Block a user