Skip to content

Commit

Permalink
Merge pull request #1519 from blockchain/fix/btc-bch-confirmations
Browse files Browse the repository at this point in the history
Fix(BTC, BCH 0 confirmation logic)
  • Loading branch information
plondon committed Mar 11, 2019
2 parents 384ef1b + 2907050 commit 8384312
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const getMinConfirms = coin => {
const Confirmations = props => {
const { blockHeight, coin, txBlockHeight } = props
const conf = blockHeight - txBlockHeight + 1
const confirmations = conf > 0 ? conf : 0
const confirmations = conf > 0 && txBlockHeight ? conf : 0
const minConfirmations = getMinConfirms(coin)

return (
Expand Down

0 comments on commit 8384312

Please sign in to comment.