From 1fbd6a3b0e111a0739fe9339b599eac6dbce754a Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Mon, 15 Jul 2024 12:51:31 +0900 Subject: [PATCH] disable blockexplorer link on Address component if not found --- packages/nextjs/components/scaffold-eth/Address.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/components/scaffold-eth/Address.tsx b/packages/nextjs/components/scaffold-eth/Address.tsx index 3e2ddf32..ee992493 100644 --- a/packages/nextjs/components/scaffold-eth/Address.tsx +++ b/packages/nextjs/components/scaffold-eth/Address.tsx @@ -95,7 +95,7 @@ export const Address = ({ address, disableAddressLink, format, size = "base" }: size={(blockieSizeMap[size] * 24) / blockieSizeMap["base"]} /> - {disableAddressLink || targetNetwork.id === hardhat.id ? ( + {disableAddressLink || targetNetwork.id === hardhat.id || !Boolean(blockExplorerAddressLink) ? ( {displayAddress} ) : (