From 2e7fa471fed3cecd91403b6c1b8937a6a2cff783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E5=9B=BD=E5=AE=87?= <841185308@qq.com> Date: Fri, 15 Mar 2024 00:04:27 +0800 Subject: [PATCH] fix: When the tx is confirming also show -- (#3075) --- packages/neuron-ui/src/components/History/RowExtend.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/neuron-ui/src/components/History/RowExtend.tsx b/packages/neuron-ui/src/components/History/RowExtend.tsx index 8a0a6e5ad8..be6f9aa5fb 100644 --- a/packages/neuron-ui/src/components/History/RowExtend.tsx +++ b/packages/neuron-ui/src/components/History/RowExtend.tsx @@ -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)