Skip to content

Commit

Permalink
fix(neuron-ui): show 0 confirmations if the real data is negative
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Sep 30, 2019
1 parent ca38b40 commit e974a21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const TransactionList = ({
const confirmationCount = 1 + +tipBlockNumber - +item.blockNumber
if (confirmationCount < CONFIRMATION_THRESHOLD) {
return t(`history.confirming-with-count`, {
confirmations: `${confirmationCount} / ${CONFIRMATION_THRESHOLD}`,
confirmations: `${Math.max(0, confirmationCount)} / ${CONFIRMATION_THRESHOLD}`,
})
}
const confirmations = localNumberFormatter(confirmationCount)
Expand Down

0 comments on commit e974a21

Please sign in to comment.