diff --git a/client/src/redux/index.js b/client/src/redux/index.js index 4efd3e8..ae67642 100644 --- a/client/src/redux/index.js +++ b/client/src/redux/index.js @@ -2,7 +2,7 @@ import { combineReducers, createStore, applyMiddleware, compose } from "redux"; import thunk from "redux-thunk"; import { isActionsLoaded, actions, sortedKeys } from "./actions"; import { isActivitiesLoaded, activities } from "./activities"; -import {isTimersLoaded, timers} from "./timers" +import { isTimersLoaded, timers } from "./timers"; const rootReducer = combineReducers({ isTimersLoaded, @@ -14,11 +14,9 @@ const rootReducer = combineReducers({ sortedKeys }); +const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; + export default createStore( rootReducer, - compose( - applyMiddleware(thunk), - - window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() - ) + composeEnhancers(applyMiddleware(thunk)) );