diff options
| author | Adam Soltys <[email protected]> | 2012-12-10 17:28:12 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-12-10 17:28:12 -0800 |
| commit | 4b5d0c7635cd14dd78fc6ab1ac5d494bd99b41d4 (patch) | |
| tree | e7aae373671ef47c2f880c2cb8d94273dd9dc4e1 /public | |
| parent | 1387766f4fc1c9354730c07bebf0a9f013e4c6ac (diff) | |
| download | coinos-server-4b5d0c7635cd14dd78fc6ab1ac5d494bd99b41d4.tar.gz coinos-server-4b5d0c7635cd14dd78fc6ab1ac5d494bd99b41d4.zip | |
Filter bogus transactions
Diffstat (limited to 'public')
| -rw-r--r-- | public/js/report.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/report.coffee b/public/js/report.coffee index 225f4392..004f655f 100644 --- a/public/js/report.coffee +++ b/public/js/report.coffee @@ -20,7 +20,9 @@ filterDates = -> from = moment($('#from').val(), "MM/DD/YYYY") to = moment($('#to').val(), "MM/DD/YYYY") d = moment(e.date) + amount = parseFloat(e.exchange) * parseFloat(e.received) + return false unless !isNaN(parseFloat(amount)) && isFinite(amount) return (!from? || d.diff(from) >= 0) && (!to? || d.diff(to) <= 0) ) @@ -45,8 +47,6 @@ display = (transactions) -> received = parseFloat(this.received) amount = received * exchange - return true unless !isNaN(parseFloat(amount)) && isFinite(amount) - $('tbody').append(""" <tr> <td>#{this.date}</td> |
