aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/token-cell.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-20 01:32:32 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-12-21 02:21:36 +0800
commit109e4e5d96e31b52fcfdb22620bff113107d000c (patch)
tree2717772cb69c8a6f22e96ecd307a5f822a9b7dda /ui/app/components/token-cell.js
parent0feb5b210b81533fc25c4760ce33876b4c749247 (diff)
downloadtangerine-wallet-browser-109e4e5d96e31b52fcfdb22620bff113107d000c.tar
tangerine-wallet-browser-109e4e5d96e31b52fcfdb22620bff113107d000c.tar.gz
tangerine-wallet-browser-109e4e5d96e31b52fcfdb22620bff113107d000c.tar.bz2
tangerine-wallet-browser-109e4e5d96e31b52fcfdb22620bff113107d000c.tar.lz
tangerine-wallet-browser-109e4e5d96e31b52fcfdb22620bff113107d000c.tar.xz
tangerine-wallet-browser-109e4e5d96e31b52fcfdb22620bff113107d000c.tar.zst
tangerine-wallet-browser-109e4e5d96e31b52fcfdb22620bff113107d000c.zip
Hide fiat values on account details screen when eth/token value is 0.
Diffstat (limited to 'ui/app/components/token-cell.js')
-rw-r--r--ui/app/components/token-cell.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/components/token-cell.js b/ui/app/components/token-cell.js
index b40c0ec0d..677b66830 100644
--- a/ui/app/components/token-cell.js
+++ b/ui/app/components/token-cell.js
@@ -86,7 +86,9 @@ TokenCell.prototype.render = function () {
numberOfDecimals: 2,
conversionRate: currentTokenToFiatRate,
})
- formattedFiat = `${currentTokenInFiat} ${currentCurrency.toUpperCase()}`
+ formattedFiat = currentTokenInFiat.toString() === '0'
+ ? ''
+ : `${currentTokenInFiat} ${currentCurrency.toUpperCase()}`
}
const showFiat = Boolean(currentTokenInFiat) && currentCurrency.toUpperCase() !== symbol