From be693c4cfbf2e165fc17dc79ae6428b52f99c51d Mon Sep 17 00:00:00 2001 From: meriadec Date: Thu, 21 Jun 2018 16:00:28 +0200 Subject: [PATCH] Prevent storybook from crashing --- src/renderer/createStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/createStore.js b/src/renderer/createStore.js index f5d6a949..66dcf482 100644 --- a/src/renderer/createStore.js +++ b/src/renderer/createStore.js @@ -20,7 +20,7 @@ export default ({ state, history, dbMiddleware }: Props) => { history = createHistory() } const middlewares = [routerMiddleware(history), thunk, logger] - if (!__STORYBOOK_ENV__) { + if (!process.env.STORYBOOK_ENV) { middlewares.push(require('middlewares/sentry').default) } if (dbMiddleware) {