Skip to content

Commit

Permalink
fix(explorer): checkpoint total transactions (#4703)
Browse files Browse the repository at this point in the history
  • Loading branch information
evavirseda authored Jan 8, 2025
1 parent 9b9b39e commit f5e892b
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions apps/explorer/src/lib/ui/utils/generateCheckpointsTableColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ export function generateCheckpointsTableColumns(): ColumnDef<Checkpoint>[] {
},
{
header: 'Transactions',
accessorKey: 'networkTotalTransactions',
accessorKey: 'transactions',
cell: ({ getValue }) => {
const networkTotalTransactions = getValue<Checkpoint['networkTotalTransactions']>();
const transactions = getValue<Checkpoint['transactions']>();
return (
<TableCellBase>
<TableCellText>{networkTotalTransactions}</TableCellText>
<TableCellText>{transactions.length}</TableCellText>
</TableCellBase>
);
},
Expand All @@ -70,17 +70,5 @@ export function generateCheckpointsTableColumns(): ColumnDef<Checkpoint>[] {
);
},
},
{
header: 'Transaction Block Count',
accessorKey: 'transactions',
cell: ({ getValue }) => {
const transactions = getValue<Checkpoint['transactions']>();
return (
<TableCellBase>
<TableCellText>{transactions.length}</TableCellText>
</TableCellBase>
);
},
},
];
}

0 comments on commit f5e892b

Please sign in to comment.