aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/currency-display.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-11-02 20:15:59 +0800
committerDan <danjm.com@gmail.com>2017-11-02 20:15:59 +0800
commit56e9f98bd05de8ae26f653d15eec4304f0c72155 (patch)
tree32b6caa805648602a80ca295076d976c181f89f4 /ui/app/components/send/currency-display.js
parent5a94775b3fa22517a71232ebe229ee83e9debcf1 (diff)
downloadtangerine-wallet-browser-56e9f98bd05de8ae26f653d15eec4304f0c72155.tar.gz
tangerine-wallet-browser-56e9f98bd05de8ae26f653d15eec4304f0c72155.tar.zst
tangerine-wallet-browser-56e9f98bd05de8ae26f653d15eec4304f0c72155.zip
More lint fixes
Diffstat (limited to 'ui/app/components/send/currency-display.js')
-rw-r--r--ui/app/components/send/currency-display.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/app/components/send/currency-display.js b/ui/app/components/send/currency-display.js
index 34939c767..45986e371 100644
--- a/ui/app/components/send/currency-display.js
+++ b/ui/app/components/send/currency-display.js
@@ -71,7 +71,7 @@ CurrencyDisplay.prototype.render = function () {
conversionRate,
})
- const inputSizeMultiplier = readOnly ? 1 : 1.2;
+ const inputSizeMultiplier = readOnly ? 1 : 1.2
return h('div', {
className,
@@ -95,15 +95,13 @@ CurrencyDisplay.prototype.render = function () {
if (newValue === '') {
newValue = '0'
- }
- else if (newValue.match(/^0[1-9]$/)) {
+ } else if (newValue.match(/^0[1-9]$/)) {
newValue = newValue.match(/[1-9]/)[0]
}
if (newValue && !isValidInput(newValue)) {
event.preventDefault()
- }
- else {
+ } else {
validate(this.getAmount(newValue))
this.setState({ value: newValue })
}
@@ -122,6 +120,6 @@ CurrencyDisplay.prototype.render = function () {
}, `${convertedValue} ${convertedCurrency.toUpperCase()}`),
])
-
+
}