Browse Source

process.env.__DEV__ to enable dev mode

master
meriadec 7 years ago
parent
commit
76956a8ab3
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 4
      src/reducers/settings.js

4
src/reducers/settings.js

@ -63,7 +63,7 @@ const INITIAL_STATE: SettingsState = {
marketIndicator: 'western', marketIndicator: 'western',
currenciesSettings: {}, currenciesSettings: {},
region, region,
developerMode: false, developerMode: !!process.env.__DEV__,
loaded: false, loaded: false,
shareAnalytics: false, shareAnalytics: false,
} }
@ -106,6 +106,7 @@ const handlers: Object = {
) => ({ ) => ({
...state, ...state,
...settings, ...settings,
developerMode: settings.developerMode || !!process.env.__DEV__,
}), }),
FETCH_SETTINGS: ( FETCH_SETTINGS: (
state: SettingsState, state: SettingsState,
@ -113,6 +114,7 @@ const handlers: Object = {
) => ({ ) => ({
...state, ...state,
...settings, ...settings,
developerMode: settings.developerMode || !!process.env.__DEV__,
loaded: true, loaded: true,
}), }),
} }

Loading…
Cancel
Save