[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;
|
var amountIndex = groupChat ? 1 : 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
amount = params.args[amountIndex];
|
amount = params.args[amountIndex].replace(",", ".");
|
||||||
txData = {
|
txData = {
|
||||||
to: contactAddress,
|
to: contactAddress,
|
||||||
value: web3.toWei(amount) || 0
|
value: web3.toWei(amount) || 0
|
||||||
|
@ -102,7 +102,6 @@ function amountParameterBox(groupChat, params, context) {
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
||||||
status.setDefaultDb({
|
status.setDefaultDb({
|
||||||
transaction: txData,
|
transaction: txData,
|
||||||
calculatedFee: "0",
|
calculatedFee: "0",
|
||||||
|
|
Loading…
Reference in New Issue