aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2017-12-23 02:43:02 +0800
committerGitHub <noreply@github.com>2017-12-23 02:43:02 +0800
commita218008adf85dfb5fa8ca93c789e14d9f2090813 (patch)
tree863dd34eed719074277a8c65397d9e5081b2084b /ui/app/reducers
parent4acd48966edf2e6cf4ced6e3e0983a44dcb2ec13 (diff)
downloadtangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar
tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.gz
tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.bz2
tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.lz
tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.xz
tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.zst
tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.zip
Track usage of old and new UI (#2794)
[NewUI] Track usage of old and new UI
Diffstat (limited to 'ui/app/reducers')
-rw-r--r--ui/app/reducers/metamask.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index 95b41e5f3..294c29948 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -1,6 +1,7 @@
const extend = require('xtend')
const actions = require('../actions')
const MetamascaraPlatform = require('../../../app/scripts/platforms/window')
+const { OLD_UI_NETWORK_TYPE } = require('../../../app/scripts/config').enums
module.exports = reduceMetamask
@@ -39,6 +40,7 @@ function reduceMetamask (state, action) {
coinOptions: {},
useBlockie: false,
featureFlags: {},
+ networkEndpointType: OLD_UI_NETWORK_TYPE,
}, state.metamask)
switch (action.type) {
@@ -335,6 +337,11 @@ function reduceMetamask (state, action) {
featureFlags: action.value,
})
+ case actions.UPDATE_NETWORK_ENDPOINT_TYPE:
+ return extend(metamaskState, {
+ networkEndpointType: action.value,
+ })
+
default:
return metamaskState