aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-07-23 01:15:39 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-07-23 01:15:39 +0800
commit22528002e1edef84ade67d5bc30b2580e6542c05 (patch)
treea9729348b3e35daa28bffae629bec724fa78bde9 /app
parenta612fcee64422ca43c470d7832a263f5e490611d (diff)
downloadtangerine-wallet-browser-22528002e1edef84ade67d5bc30b2580e6542c05.tar
tangerine-wallet-browser-22528002e1edef84ade67d5bc30b2580e6542c05.tar.gz
tangerine-wallet-browser-22528002e1edef84ade67d5bc30b2580e6542c05.tar.bz2
tangerine-wallet-browser-22528002e1edef84ade67d5bc30b2580e6542c05.tar.lz
tangerine-wallet-browser-22528002e1edef84ade67d5bc30b2580e6542c05.tar.xz
tangerine-wallet-browser-22528002e1edef84ade67d5bc30b2580e6542c05.tar.zst
tangerine-wallet-browser-22528002e1edef84ade67d5bc30b2580e6542c05.zip
Linting!
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/config-manager.js2
-rw-r--r--app/scripts/metamask-controller.js6
2 files changed, 5 insertions, 3 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 14caa80c8..e0f389ed4 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -296,7 +296,7 @@ ConfigManager.prototype.updateConversionRate = function () {
ConfigManager.prototype.setConversionPrice = function(price) {
var data = this.getData()
- data.conversionRate = Number(parsedResponse.ticker.price)
+ data.conversionRate = Number(price)
this.setData(data)
}
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index e121fad6a..0537bda97 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -251,7 +251,7 @@ module.exports = class MetamaskController {
}
cb(data)
} catch (e) {
- cb(null,e)
+ cb(null, e)
}
}
@@ -260,7 +260,9 @@ module.exports = class MetamaskController {
clearInterval(this.conversionInterval)
}
this.conversionInterval = setInterval(() => {
- console.log("Updated currency!")
+ console.log('=================')
+ console.log('Updated currency!')
+ console.log('=================')
this.configManager.updateConversionRate()
}, 1000)
}