From 76956a8ab36179a2517fc82cfd3b897435dfdac7 Mon Sep 17 00:00:00 2001 From: meriadec Date: Sat, 2 Jun 2018 18:05:53 +0200 Subject: [PATCH] process.env.__DEV__ to enable dev mode --- src/reducers/settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/reducers/settings.js b/src/reducers/settings.js index bcf5eb6e..8a44a97d 100644 --- a/src/reducers/settings.js +++ b/src/reducers/settings.js @@ -63,7 +63,7 @@ const INITIAL_STATE: SettingsState = { marketIndicator: 'western', currenciesSettings: {}, region, - developerMode: false, + developerMode: !!process.env.__DEV__, loaded: false, shareAnalytics: false, } @@ -106,6 +106,7 @@ const handlers: Object = { ) => ({ ...state, ...settings, + developerMode: settings.developerMode || !!process.env.__DEV__, }), FETCH_SETTINGS: ( state: SettingsState, @@ -113,6 +114,7 @@ const handlers: Object = { ) => ({ ...state, ...settings, + developerMode: settings.developerMode || !!process.env.__DEV__, loaded: true, }), }