diff --git a/app/scenes/RootScreen/reducer.js b/app/scenes/RootScreen/reducer.js index 702a595..bb30247 100644 --- a/app/scenes/RootScreen/reducer.js +++ b/app/scenes/RootScreen/reducer.js @@ -1,7 +1,6 @@ import { createActions } from 'reduxsauce'; import { fromJS } from 'immutable'; import produce from 'immer'; -import get from 'lodash/get'; export const { Types: rootScreenTypes, Creators: rootScreenActions @@ -16,8 +15,8 @@ export const initialState = fromJS({ export const rootContainerReducer = (state = initialState, action) => produce(state, () => { - const stateReturn = { - [rootScreenTypes.STARTUP]: state - }; - return get(stateReturn, [action.type], state); + switch (action.type) { + default: + return state; + } });