aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorSara Reynolds <sarareynolds@Saras-MacBook-Pro-2.local>2018-07-17 07:50:08 +0800
committerSara Reynolds <sarareynolds@Saras-MacBook-Pro-2.local>2018-07-17 07:50:08 +0800
commitdcf8e0ed12de61bf58b4d27010b5b8b6d93bd7dd (patch)
treef5b283d3fc5dd157ffca83418208ca6fd23bfb3e /ui/app/components
parent684fc710ee6db33e3ca4e5c5777874e46ccef3b1 (diff)
downloadtangerine-wallet-browser-dcf8e0ed12de61bf58b4d27010b5b8b6d93bd7dd.tar
tangerine-wallet-browser-dcf8e0ed12de61bf58b4d27010b5b8b6d93bd7dd.tar.gz
tangerine-wallet-browser-dcf8e0ed12de61bf58b4d27010b5b8b6d93bd7dd.tar.bz2
tangerine-wallet-browser-dcf8e0ed12de61bf58b4d27010b5b8b6d93bd7dd.tar.lz
tangerine-wallet-browser-dcf8e0ed12de61bf58b4d27010b5b8b6d93bd7dd.tar.xz
tangerine-wallet-browser-dcf8e0ed12de61bf58b4d27010b5b8b6d93bd7dd.tar.zst
tangerine-wallet-browser-dcf8e0ed12de61bf58b4d27010b5b8b6d93bd7dd.zip
lint fix
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/send/currency-display/currency-display.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/app/components/send/currency-display/currency-display.js b/ui/app/components/send/currency-display/currency-display.js
index 3bef25e29..2b8eaa41f 100644
--- a/ui/app/components/send/currency-display/currency-display.js
+++ b/ui/app/components/send/currency-display/currency-display.js
@@ -80,13 +80,13 @@ CurrencyDisplay.prototype.getValueToRender = function ({ selectedToken, conversi
CurrencyDisplay.prototype.getConvertedValueToRender = function (nonFormattedValue) {
const { primaryCurrency, convertedCurrency, conversionRate } = this.props
- if (conversionRate == 0 || conversionRate == null || conversionRate == undefined) {
- if (nonFormattedValue != 0) {
+ if (conversionRate === 0 || conversionRate === null || conversionRate === undefined) {
+ if (nonFormattedValue !== 0) {
return null
}
}
- const convertedValue = conversionUtil(nonFormattedValue, {
+ let convertedValue = conversionUtil(nonFormattedValue, {
fromNumericBase: 'dec',
fromCurrency: primaryCurrency,
toCurrency: convertedCurrency,
@@ -94,7 +94,7 @@ CurrencyDisplay.prototype.getConvertedValueToRender = function (nonFormattedValu
conversionRate,
})
- convertedValue == Number(convertedValue).toFixed(2)
+ convertedValue = Number(convertedValue).toFixed(2)
const upperCaseCurrencyCode = convertedCurrency.toUpperCase()
return currencies.find(currency => currency.code === upperCaseCurrencyCode)
? currencyFormatter.format(Number(convertedValue), {
@@ -132,9 +132,7 @@ CurrencyDisplay.prototype.render = function () {
const {
className = 'currency-display',
primaryBalanceClassName = 'currency-display__input',
- convertedBalanceClassName = 'currency-display__converted-value',
primaryCurrency,
- convertedCurrency,
readOnly = false,
inError = false,
onBlur,