diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-08-11 01:54:55 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-08-11 01:54:55 +0800 |
commit | abfc5632efcc72b3ad45ec1df8bf5889f75a8472 (patch) | |
tree | fad9d6d6c77ead0dfd2de303cda9d9c4cb336f40 /app | |
parent | 106cbc133f26606449746587d4a33a3b8fb3f727 (diff) | |
download | tangerine-wallet-browser-abfc5632efcc72b3ad45ec1df8bf5889f75a8472.tar tangerine-wallet-browser-abfc5632efcc72b3ad45ec1df8bf5889f75a8472.tar.gz tangerine-wallet-browser-abfc5632efcc72b3ad45ec1df8bf5889f75a8472.tar.bz2 tangerine-wallet-browser-abfc5632efcc72b3ad45ec1df8bf5889f75a8472.tar.lz tangerine-wallet-browser-abfc5632efcc72b3ad45ec1df8bf5889f75a8472.tar.xz tangerine-wallet-browser-abfc5632efcc72b3ad45ec1df8bf5889f75a8472.tar.zst tangerine-wallet-browser-abfc5632efcc72b3ad45ec1df8bf5889f75a8472.zip |
Fix ether warning checkbox.
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/config-manager.js | 8 | ||||
-rw-r--r-- | app/scripts/metamask-controller.js | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js index 727cd46fc..3d84edfd0 100644 --- a/app/scripts/lib/config-manager.js +++ b/app/scripts/lib/config-manager.js @@ -274,9 +274,13 @@ ConfigManager.prototype.getConfirmed = function () { return ('isConfirmed' in data) && data.isConfirmed } -ConfigManager.prototype.setShouldntShowWarning = function (confirmed) { +ConfigManager.prototype.setShouldntShowWarning = function () { var data = this.getData() - data.isEthConfirmed = confirmed + if (data.isEthConfirmed) { + data.isEthConfirmed = !data.isEthConfirmed + } else { + data.isEthConfirmed = true + } this.setData(data) } diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index dd43ac2fc..e7e96a472 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -243,7 +243,7 @@ module.exports = class MetamaskController { agreeToEthWarning (cb) { try { - this.configManager.setShouldntShowWarning(true) + this.configManager.setShouldntShowWarning() cb() } catch (e) { cb(e) |