fix: ETH pending balance on funding page
This commit is contained in:
parent
82912b728a
commit
9a074438bd
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ function getSingleCoinFunding (settings, fiatCode, cryptoCode) {
|
|||
const rate = (rates.ask.add(rates.bid)).div(2)
|
||||
const fundingConfirmedBalance = fundingRec.fundingConfirmedBalance
|
||||
const fiatConfirmedBalance = computeFiat(rate, cryptoCode, fundingConfirmedBalance)
|
||||
const pending = fundingRec.fundingPendingBalance
|
||||
const pending = cryptoCode === 'ETH'
|
||||
? fundingRec.fundingPendingBalance - fundingRec.fundingConfirmedBalance
|
||||
: fundingRec.fundingPendingBalance
|
||||
const fiatPending = computeFiat(rate, cryptoCode, pending)
|
||||
const fundingAddress = fundingRec.fundingAddress
|
||||
const fundingAddressUrl = coinUtils.buildUrl(cryptoCode, fundingAddress)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue