Skip to content

Commit

Permalink
disable blockexplorer link on Address component if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Jul 15, 2024
1 parent 1c930bd commit 1fbd6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/components/scaffold-eth/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const Address = ({ address, disableAddressLink, format, size = "base" }:
size={(blockieSizeMap[size] * 24) / blockieSizeMap["base"]}
/>
</div>
{disableAddressLink || targetNetwork.id === hardhat.id ? (
{disableAddressLink || targetNetwork.id === hardhat.id || !Boolean(blockExplorerAddressLink) ? (
<span className={`ml-1.5 text-${size} font-normal`}>{displayAddress}</span>
) : (
<a
Expand Down

0 comments on commit 1fbd6a3

Please sign in to comment.