From 465b4eef9ce5c7168f040559c86d25eb82b87548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Jovi=C4=87?= Date: Mon, 25 Sep 2017 19:56:24 +0200 Subject: [PATCH] =?UTF-8?q?fix=20#1888=20ether=20amount=20not=20updated=20?= =?UTF-8?q?in=20/send=20suggestion=20if=20it=20was=20init=E2=80=A6=20(#190?= =?UTF-8?q?4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix #1888 ether amount not updated in /send suggestion if it was initially undefined * dummy change to trigger jenkins rebuild * another dummy commit to trigger jenkins build --- resources/js/bots/wallet/bot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/js/bots/wallet/bot.js b/resources/js/bots/wallet/bot.js index 8426079fd4..a332b0f7d5 100644 --- a/resources/js/bots/wallet/bot.js +++ b/resources/js/bots/wallet/bot.js @@ -51,8 +51,9 @@ function amountParameterBox(params, context) { var txData; var amount; + try { - amount = params.args[1]; + amount = params.args[1] || "0"; txData = { to: contactAddress, value: web3.toWei(amount) || 0