aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
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,
}
),
})