fix: backwards compatibility on cashout fixed fee
This commit is contained in:
parent
59da215788
commit
59ebee211f
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ const mapValuesWithKey = _.mapValues.convert({cap: false})
|
||||||
function convertBigNumFields (obj) {
|
function convertBigNumFields (obj) {
|
||||||
const convert = (value, key) => {
|
const convert = (value, key) => {
|
||||||
if (_.includes(key, [ 'cryptoAtoms', 'receivedCryptoAtoms', 'fiat', 'fixedFee' ])) {
|
if (_.includes(key, [ 'cryptoAtoms', 'receivedCryptoAtoms', 'fiat', 'fixedFee' ])) {
|
||||||
|
// BACKWARDS_COMPATIBILITY 10.1
|
||||||
|
// bills before 10.2 don't have fixedFee
|
||||||
|
if (key === 'fixedFee' && !value) return new BN(0).toString()
|
||||||
return value.toString()
|
return value.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue