resources, commands.js, replace() comma to period
This commit is contained in:
parent
3437f79d82
commit
7f2059070b
|
@ -918,7 +918,7 @@ status.command({
|
||||||
},
|
},
|
||||||
validator: function(params) {
|
validator: function(params) {
|
||||||
try {
|
try {
|
||||||
var val = web3.toWei(params.amount, "ether");
|
var val = web3.toWei(params.amount.replace(",", "."), "ether");
|
||||||
if (val <= 0) { throw new Error(); }
|
if (val <= 0) { throw new Error(); }
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue