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',
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,
}),
}

Loading…
Cancel
Save