Skip to content

Commit

Permalink
fix(explorer): improve tx timestamp on homepage (#4603)
Browse files Browse the repository at this point in the history
  • Loading branch information
brancoder authored Dec 26, 2024
1 parent 2f09f5b commit 8d8534e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ export function generateTransactionsTableColumns(): ColumnDef<IotaTransactionBlo
accessorKey: 'timestampMs',
cell: ({ getValue }) => {
const timestampMs = getValue();
const elapsedTime = timestampMs
? getElapsedTime(Number(timestampMs), Date.now())
: '--';
return (
<TableCellBase>
<TableCellText>
{getElapsedTime(Number(timestampMs), Date.now()) || '--'}
</TableCellText>
<TableCellText>{elapsedTime}</TableCellText>
</TableCellBase>
);
},
Expand Down

0 comments on commit 8d8534e

Please sign in to comment.