Skip to content

Commit

Permalink
fix: When the tx is confirming also show -- (#3075)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu authored Mar 14, 2024
1 parent e784476 commit 2e7fa47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/neuron-ui/src/components/History/RowExtend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ const RowExtend = ({ column, columns, isMainnet, id, bestBlockNumber }: RowExten
const confirmations = bestBlockNumber && blockNumber ? 1 + bestBlockNumber - +blockNumber : null
const confirmationsLabel =
// eslint-disable-next-line no-nested-ternary
confirmations === null ? '--' : confirmations > 1000 ? '1,000+' : localNumberFormatter(confirmations)
confirmations === null || confirmations < 0
? '--'
: confirmations > 1000
? '1,000+'
: localNumberFormatter(confirmations)
const onCopy = useCallback(() => {
window.navigator.clipboard.writeText(hash)
showPageNotice('common.copied')(dispatch)
Expand Down

1 comment on commit 2e7fa47

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 8283873157

Please sign in to comment.