Skip to content

Commit

Permalink
fix(transfer): convert amount to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
sqfasd committed Aug 1, 2018
1 parent 238fe32 commit a85256b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/interface/transfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ module.exports = (router) => {
t.transaction = trsMap.get(t.tid)
}
}
for (const t of transfers) {
if (t.amount) {
const pos = t.amount.indexOf('.')
if (pos !== -1) {
t.amount = t.amount.slice(0, pos)
}
}
}
return { count, transfers }
})
}

0 comments on commit a85256b

Please sign in to comment.