aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-15 08:49:16 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-11-15 08:49:16 +0800
commit7de6b12aad4a674bdbb0749d2e61d9fd5f69c536 (patch)
tree1e4165b6c4fb220dd399a8bdf245bc7c5396b92b /ui/app
parent92edc63d6e4d1e80e530f26596a9b91d305600c4 (diff)
downloadtangerine-wallet-browser-7de6b12aad4a674bdbb0749d2e61d9fd5f69c536.tar
tangerine-wallet-browser-7de6b12aad4a674bdbb0749d2e61d9fd5f69c536.tar.gz
tangerine-wallet-browser-7de6b12aad4a674bdbb0749d2e61d9fd5f69c536.tar.bz2
tangerine-wallet-browser-7de6b12aad4a674bdbb0749d2e61d9fd5f69c536.tar.lz
tangerine-wallet-browser-7de6b12aad4a674bdbb0749d2e61d9fd5f69c536.tar.xz
tangerine-wallet-browser-7de6b12aad4a674bdbb0749d2e61d9fd5f69c536.tar.zst
tangerine-wallet-browser-7de6b12aad4a674bdbb0749d2e61d9fd5f69c536.zip
Re-enable disclaimer screen. Rename variables to reflect role more clearly.
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/app.js6
-rw-r--r--ui/app/reducers/metamask.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index abe609eca..977392c57 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -39,7 +39,7 @@ function mapStateToProps (state) {
return {
// state from plugin
isLoading: state.appState.isLoading,
- isConfirmed: state.metamask.isConfirmed,
+ isDisclaimerConfirmed: state.metamask.isDisclaimerConfirmed,
isInitialized: state.metamask.isInitialized,
isUnlocked: state.metamask.isUnlocked,
currentView: state.appState.currentView,
@@ -323,7 +323,7 @@ App.prototype.renderBackButton = function (style, justArrow = false) {
App.prototype.renderBackToInitButton = function () {
var props = this.props
var button = null
- if (!props.isConfirmed) return button
+ if (!props.isDisclaimerConfirmed) return button
if (!props.isUnlocked) {
if (props.currentView.name === 'InitMenu') {
@@ -356,7 +356,7 @@ App.prototype.renderBackToInitButton = function () {
App.prototype.renderPrimary = function () {
var props = this.props
- if (!props.isConfirmed) {
+ if (!props.isDisclaimerConfirmed) {
return h(DisclaimerScreen, {key: 'disclaimerScreen'})
}
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index aa809b333..82904dcc6 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -30,7 +30,7 @@ function reduceMetamask (state, action) {
case actions.AGREE_TO_DISCLAIMER:
return extend(metamaskState, {
- isConfirmed: true,
+ isDisclaimerConfirmed: true,
})
case actions.UNLOCK_METAMASK: