Fix hike question transition disposing answer saga
This commit is contained in:
@ -80,11 +80,15 @@ export default handleActions(
|
||||
[types.goToNextHike]: state => ({
|
||||
...state,
|
||||
currentHike: findNextHikeName(state.hikes, state.currentHike),
|
||||
shouldShowQuestions: false,
|
||||
currentQuestion: 1,
|
||||
mouse: [ 0, 0 ]
|
||||
}),
|
||||
|
||||
[types.transitionHike]: state => ({
|
||||
...state,
|
||||
showQuestions: false,
|
||||
currentQuestion: 1
|
||||
}),
|
||||
|
||||
[types.fetchHikesCompleted]: (state, { payload }) => {
|
||||
const { hikes, currentHike } = payload;
|
||||
|
||||
|
Reference in New Issue
Block a user