import {compose, createStore, applyMiddleware} from 'redux'
import {devTools, persistState} from 'redux-devtools'
import thunkMiddleware from 'redux-thunk'
import rootReducer from '../reducers'
import {logger} from '../middleware'

import config from '../config'

const middlewares = [
  applyMiddleware(thunkMiddleware),
  applyMiddleware(logger),
  // Provides support for DevTools
  config.reduxDevTools && devTools(),
  // Lets you write ?debug_session=<name> in address bar to persist debug sessions
  config.reduxDevTools && persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/))
].filter(Boolean)

const finalCreateStore = compose.apply(null, middlewares)(createStore)

export default finalCreateStore(rootReducer, {})

@@ -651,21 +651,12 @@
 pose
-.apply(null, 
+(...
 midd

Fix linter warning