diff options
| author | Adam Soltys <[email protected]> | 2016-10-22 18:25:00 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2016-10-22 18:25:04 -0700 |
| commit | dd4c51d848aab877ce53f825814a85d9a990a0e7 (patch) | |
| tree | c823e641a6d8cb5c956bc35b71e447c208cc8357 /public/js/wallet.coffee | |
| parent | 170dee278688a30157b766749de2eb38619e4dc2 (diff) | |
| download | coinos-server-dd4c51d848aab877ce53f825814a85d9a990a0e7.tar.gz coinos-server-dd4c51d848aab877ce53f825814a85d9a990a0e7.zip | |
Replace isNumeric is isNaN
Diffstat (limited to 'public/js/wallet.coffee')
| -rw-r--r-- | public/js/wallet.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/wallet.coffee b/public/js/wallet.coffee index bb322875..6fa0bac1 100644 --- a/public/js/wallet.coffee +++ b/public/js/wallet.coffee @@ -404,7 +404,7 @@ displayErrors = (data, dialog) -> convertedAmount = -> - g.amount = amount unless g.amount and isNumeric(g.amount) + g.amount = amount unless g.amount and !isNaN(parseFloat(g.amount)) amount = parseFloat($('#amount').val() * multiplier() / g.exchange).toFixed(precision()) difference = parseFloat(Math.abs(g.amount - amount).toFixed(precision())) tolerance = parseFloat((.00000002 * g.exchange * multiplier()).toFixed(precision())) |
