Skip to content

Commit

Permalink
smart contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed Oct 6, 2024
1 parent bac53a6 commit db3787e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/web/src/components/Token/TokenHoldersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ export const TokenHoldersTable = ({
href={`https://explorer.hiro.so/address/${holder.address}?chain=mainnet`}
target="_blank"
color="gray"
title={holder.address}
>
{holder.address}
{holder.address.includes(".")
? `${holder.address.split(".")[0].slice(0, 20)}...${
holder.address.split(".")[1]
}`
: holder.address}
</Link>
</Table.Cell>
<Table.Cell align="right">
Expand Down

0 comments on commit db3787e

Please sign in to comment.