resources, commands.js, replace() comma to period

This commit is contained in:
Timothy Roy 2017-03-11 18:28:07 -06:00 committed by Roman Volosovskyi
parent 3437f79d82
commit 7f2059070b
1 changed files with 1 additions and 1 deletions

View File

@ -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 {