fix cashOut bug
This commit is contained in:
parent
c860df1576
commit
f6a7e11435
2 changed files with 7 additions and 1 deletions
|
|
@ -23,13 +23,18 @@ function massage (tx) {
|
|||
const transformDates = r => mapValuesWithKey(transformDate, r)
|
||||
|
||||
const mapBN = r => {
|
||||
const update = {
|
||||
const update = r.direction === 'cashIn'
|
||||
? {
|
||||
cryptoAtoms: BN(r.cryptoAtoms),
|
||||
fiat: BN(r.fiat),
|
||||
cashInFee: BN(r.cashInFee),
|
||||
cashInFeeCrypto: BN(r.cashInFeeCrypto),
|
||||
minimumTx: BN(r.minimumTx)
|
||||
}
|
||||
: {
|
||||
cryptoAtoms: BN(r.cryptoAtoms),
|
||||
fiat: BN(r.fiat)
|
||||
}
|
||||
|
||||
return _.assign(r, update)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue