aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-31 22:37:23 +0800
committerDan <danjm.com@gmail.com>2018-05-31 22:37:23 +0800
commit67c74cd5b6dba059f954be6867a20e1f97197f7d (patch)
tree659bfd63fa3dcf94ab463f0cd1c5eb519dc2b4e5
parent7f23e017b22ecdc111c2c14f97d632f5490cb5c8 (diff)
downloadtangerine-wallet-browser-67c74cd5b6dba059f954be6867a20e1f97197f7d.tar
tangerine-wallet-browser-67c74cd5b6dba059f954be6867a20e1f97197f7d.tar.gz
tangerine-wallet-browser-67c74cd5b6dba059f954be6867a20e1f97197f7d.tar.bz2
tangerine-wallet-browser-67c74cd5b6dba059f954be6867a20e1f97197f7d.tar.lz
tangerine-wallet-browser-67c74cd5b6dba059f954be6867a20e1f97197f7d.tar.xz
tangerine-wallet-browser-67c74cd5b6dba059f954be6867a20e1f97197f7d.tar.zst
tangerine-wallet-browser-67c74cd5b6dba059f954be6867a20e1f97197f7d.zip
Fix currency display send integration tests.
-rw-r--r--test/integration/lib/send-new-ui.js2
-rw-r--r--ui/app/components/send/currency-display.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/lib/send-new-ui.js b/test/integration/lib/send-new-ui.js
index 3da3f4f95..0a9495595 100644
--- a/test/integration/lib/send-new-ui.js
+++ b/test/integration/lib/send-new-ui.js
@@ -101,7 +101,7 @@ async function runSendFlowTest(assert, done) {
const sendAmountField = await queryAsync($, '.send-v2__form-row:eq(2)')
sendAmountField.find('.currency-display')[0].click()
- const sendAmountFieldInput = await findAsync(sendAmountField, 'input:text')
+ const sendAmountFieldInput = await findAsync(sendAmountField, '.currency-display__input')
sendAmountFieldInput.val('5.1')
reactTriggerChange(sendAmountField.find('input')[0])
diff --git a/ui/app/components/send/currency-display.js b/ui/app/components/send/currency-display.js
index 0b52a69b5..ff61bd1e7 100644
--- a/ui/app/components/send/currency-display.js
+++ b/ui/app/components/send/currency-display.js
@@ -49,7 +49,7 @@ CurrencyDisplay.prototype.getAmount = function (value) {
}
CurrencyDisplay.prototype.getValueToRender = function ({ selectedToken, conversionRate, value }) {
- if (value === '0x0') return ''
+ if (value === '0x0') return '0'
const { decimals, symbol } = selectedToken || {}
const multiplier = Math.pow(10, Number(decimals || 0))