[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:
parent
c66c5948a9
commit
c5bea68fdc
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue