Skip to content

Commit

Permalink
feat: use block time in tx page
Browse files Browse the repository at this point in the history
  • Loading branch information
He1DAr committed Nov 25, 2024
1 parent ea80e0d commit 89c841b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/txid/[txId]/TxDetails/BlockHeight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function BlockHeightBase({ tx }: { tx: Transaction | MempoolTransaction }) {

if (isInMempool(tx) || isInMicroblock(tx)) return null;

const ts = tx.burn_block_time;
const ts = tx.block_time || tx.burn_block_time;
if (!ts) return null;

const readableTs = `${new Date(ts * 1000).toLocaleTimeString()} ${new Date(
Expand Down

0 comments on commit 89c841b

Please sign in to comment.