[fixes #2908] 0.00 ETH is shown instead of specified amount (with comma) on Send transaction screen after /send command (#3122)

This commit is contained in:
Alexander Pantyuhov 2018-01-25 11:36:03 +01:00 committed by GitHub
parent c66c5948a9
commit c5bea68fdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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",