aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-02 12:28:01 +0800
committerDan <danjm.com@gmail.com>2018-06-02 12:28:01 +0800
commitffd42c59da1e3728786d8e8cd20a9c95ea279de0 (patch)
treef44c49ce0753ab4a6bfa4c0bbb00cb331c5789c8 /ui
parent1b879f45bc0d53e8c0ffa9513b525e0055ed8f81 (diff)
downloadtangerine-wallet-browser-ffd42c59da1e3728786d8e8cd20a9c95ea279de0.tar
tangerine-wallet-browser-ffd42c59da1e3728786d8e8cd20a9c95ea279de0.tar.gz
tangerine-wallet-browser-ffd42c59da1e3728786d8e8cd20a9c95ea279de0.tar.bz2
tangerine-wallet-browser-ffd42c59da1e3728786d8e8cd20a9c95ea279de0.tar.lz
tangerine-wallet-browser-ffd42c59da1e3728786d8e8cd20a9c95ea279de0.tar.xz
tangerine-wallet-browser-ffd42c59da1e3728786d8e8cd20a9c95ea279de0.tar.zst
tangerine-wallet-browser-ffd42c59da1e3728786d8e8cd20a9c95ea279de0.zip
Default currency-display valueToRender to empty string when not readOnly ('0' if readOnly).
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/send/currency-display.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/send/currency-display.js b/ui/app/components/send/currency-display.js
index ede08dbc0..3bc9ad226 100644
--- a/ui/app/components/send/currency-display.js
+++ b/ui/app/components/send/currency-display.js
@@ -49,8 +49,8 @@ CurrencyDisplay.prototype.getAmount = function (value) {
: toHexWei(value)
}
-CurrencyDisplay.prototype.getValueToRender = function ({ selectedToken, conversionRate, value }) {
- if (value === '0x0') return '0'
+CurrencyDisplay.prototype.getValueToRender = function ({ selectedToken, conversionRate, value, readOnly }) {
+ if (value === '0x0') return readOnly ? '0' : ''
const { decimals, symbol } = selectedToken || {}
const multiplier = Math.pow(10, Number(decimals || 0))