Account for undefined currencies.

feature/default_network_editable
Kevin Serrano 7 years ago
parent 31e9dcf470
commit 88ddedfb5a
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 3
      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) {

Loading…
Cancel
Save