aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-08-17 06:11:40 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-08-17 06:11:40 +0800
commit666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4 (patch)
treeae8f2a3a805e0ac24ed3d1058138cf1b3c25b763 /ui/app
parent121af0c4b9fd12e9960cbf5bbb3203819b854eb7 (diff)
downloadtangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.gz
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.bz2
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.lz
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.xz
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.zst
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.zip
Added compliance for tests and properly accounts for N/A conversions.
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/account-eth-balance.js2
-rw-r--r--ui/app/reducers/metamask.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/account-eth-balance.js b/ui/app/components/account-eth-balance.js
index bcef40096..6cdb33b73 100644
--- a/ui/app/components/account-eth-balance.js
+++ b/ui/app/components/account-eth-balance.js
@@ -52,7 +52,7 @@ EthBalanceComponent.prototype.renderBalance = function (value, state) {
var ethSuffix = splitBalance[1]
- if (state.conversionRate !== 'N/A') {
+ if (state.conversionRate !== 0) {
fiatNumber = (Number(splitBalance[0]) * state.conversionRate).toFixed(2)
} else {
fiatNumber = 'N/A'
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index 7af805f06..7f18480cb 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -16,7 +16,7 @@ function reduceMetamask (state, action) {
identities: {},
unconfTxs: {},
currentFiat: 'USD',
- conversionRate: 'N/A',
+ conversionRate: 0,
conversionDate: 'N/A',
}, state.metamask)