Skip to content

Commit e974a21

Browse files
committed
fix(neuron-ui): show 0 confirmations if the real data is negative
1 parent ca38b40 commit e974a21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/neuron-ui/src/components/TransactionList

packages/neuron-ui/src/components/TransactionList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const TransactionList = ({
133133
const confirmationCount = 1 + +tipBlockNumber - +item.blockNumber
134134
if (confirmationCount < CONFIRMATION_THRESHOLD) {
135135
return t(`history.confirming-with-count`, {
136-
confirmations: `${confirmationCount} / ${CONFIRMATION_THRESHOLD}`,
136+
confirmations: `${Math.max(0, confirmationCount)} / ${CONFIRMATION_THRESHOLD}`,
137137
})
138138
}
139139
const confirmations = localNumberFormatter(confirmationCount)

0 commit comments

Comments
 (0)