aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-28 22:10:33 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-29 06:54:51 +0800
commita195427e7208096f6f873175f2cbdbbb0a802191 (patch)
treeba68423499aa91cfec3bd6e0790d9833fc6848f8 /ui/app/send.js
parentb55a40c7f144645a29569294996893cb1b519779 (diff)
downloadtangerine-wallet-browser-a195427e7208096f6f873175f2cbdbbb0a802191.tar
tangerine-wallet-browser-a195427e7208096f6f873175f2cbdbbb0a802191.tar.gz
tangerine-wallet-browser-a195427e7208096f6f873175f2cbdbbb0a802191.tar.bz2
tangerine-wallet-browser-a195427e7208096f6f873175f2cbdbbb0a802191.tar.lz
tangerine-wallet-browser-a195427e7208096f6f873175f2cbdbbb0a802191.tar.xz
tangerine-wallet-browser-a195427e7208096f6f873175f2cbdbbb0a802191.tar.zst
tangerine-wallet-browser-a195427e7208096f6f873175f2cbdbbb0a802191.zip
Fix send of USD and backspacing amount to 0
Diffstat (limited to 'ui/app/send.js')
-rw-r--r--ui/app/send.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index 4d2a5f48d..d92a6f2d5 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -230,12 +230,16 @@ SendTransactionScreen.prototype.renderAmountInput = function (activeCurrency) {
placeholder: `0 ${activeCurrency}`,
type: 'number',
onChange: (event) => {
+ const amountToSend = event.target.value
+ ? this.getAmountToSend(event.target.value)
+ : '0x0'
+
this.setState({
newTx: Object.assign(
this.state.newTx,
{
amount: event.target.value,
- amountToSend: this.getAmountToSend(event.target.value),
+ amountToSend: amountToSend,
}
),
})