From c5bea68fdcc2297b8517a9a675655aa135a3ebc1 Mon Sep 17 00:00:00 2001 From: Alexander Pantyuhov Date: Thu, 25 Jan 2018 11:36:03 +0100 Subject: [PATCH] [fixes #2908] 0.00 ETH is shown instead of specified amount (with comma) on Send transaction screen after /send command (#3122) --- resources/js/bots/transactor/bot.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/js/bots/transactor/bot.js b/resources/js/bots/transactor/bot.js index cc18580242..cf5d802d97 100644 --- a/resources/js/bots/transactor/bot.js +++ b/resources/js/bots/transactor/bot.js @@ -77,7 +77,7 @@ function amountParameterBox(groupChat, params, context) { var amountIndex = groupChat ? 1 : 0; try { - amount = params.args[amountIndex]; + amount = params.args[amountIndex].replace(",", "."); txData = { to: contactAddress, value: web3.toWei(amount) || 0 @@ -102,7 +102,6 @@ function amountParameterBox(groupChat, params, context) { }); } catch (err) { - status.setDefaultDb({ transaction: txData, calculatedFee: "0",