Skip to content

Commit

Permalink
fix latest-blocks page identity column format error (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaicholakov25 authored Oct 18, 2024
1 parent dd7dbf4 commit c2a38a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/latestBlocks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ const LatestBlocks = () => {
{
header: 'Validator',
cell: ({ row }) => {
return truncateAddress(row.original.identity!.address.toString() || '', 6);
// IF THE BLOCK IS NOT PINNED (ITS A WRONG FORK) THE IDENTITY WOULD BE "UNDEFINED"
return truncateAddress(row.original.identity?.address?.toString?.() || '', 6);
},
},
{
Expand Down

0 comments on commit c2a38a6

Please sign in to comment.