import { applyMiddleware, compose, createStore } from 'redux';
import promiseMiddleware from 'redux-promise-middleware';

import reducer from './reducer';

const middlewares = [promiseMiddleware()];

if (process.env.NODE_ENV !== 'production') {
  const { createLogger } = require(`redux-logger`);

  middlewares.push(createLogger());
}

export default createStore(
  reducer,
  {},
  compose(applyMiddleware(...middlewares))
);

@@ -222,23 +222,24 @@
 ENV 
-!
+=
 == '
-production
+development
 ') %7B

fix logging 2