diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-27 01:09:50 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-27 01:09:50 +0800 |
commit | 88ddedfb5a293cce4f2716729f412f633dff4053 (patch) | |
tree | 0d91d2dca669a610748bb1a6800403ce5ed16376 /ui | |
parent | 31e9dcf47063e1be7337d7d06b4c721e0f619951 (diff) | |
download | tangerine-wallet-browser-88ddedfb5a293cce4f2716729f412f633dff4053.tar tangerine-wallet-browser-88ddedfb5a293cce4f2716729f412f633dff4053.tar.gz tangerine-wallet-browser-88ddedfb5a293cce4f2716729f412f633dff4053.tar.bz2 tangerine-wallet-browser-88ddedfb5a293cce4f2716729f412f633dff4053.tar.lz tangerine-wallet-browser-88ddedfb5a293cce4f2716729f412f633dff4053.tar.xz tangerine-wallet-browser-88ddedfb5a293cce4f2716729f412f633dff4053.tar.zst tangerine-wallet-browser-88ddedfb5a293cce4f2716729f412f633dff4053.zip |
Account for undefined currencies.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/fiat-value.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/components/fiat-value.js b/ui/app/components/fiat-value.js index d76b80ab2..d69f41d11 100644 --- a/ui/app/components/fiat-value.js +++ b/ui/app/components/fiat-value.js @@ -13,6 +13,7 @@ function FiatValue () { FiatValue.prototype.render = function () { const props = this.props const { conversionRate, currentCurrency } = props + const renderedCurrency = currentCurrency || '' const value = formatBalance(props.value, 6) @@ -28,7 +29,7 @@ FiatValue.prototype.render = function () { fiatTooltipNumber = 'Unknown' } - return fiatDisplay(fiatDisplayNumber, currentCurrency.toUpperCase()) + return fiatDisplay(fiatDisplayNumber, renderedCurrency.toUpperCase()) } function fiatDisplay (fiatDisplayNumber, fiatSuffix) { |