From 1d53eb888737629b9e0ed1e6eb7affafcb1331fa Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Thu, 25 May 2023 14:49:36 +0530 Subject: [PATCH] show chain id only if available --- apps/etherscan/src/app/views/VerifyView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/etherscan/src/app/views/VerifyView.tsx b/apps/etherscan/src/app/views/VerifyView.tsx index 64871207e4..a4de2e77a3 100644 --- a/apps/etherscan/src/app/views/VerifyView.tsx +++ b/apps/etherscan/src/app/views/VerifyView.tsx @@ -38,7 +38,7 @@ export const VerifyView: React.FC = ({ useEffect(() => { if (client && client.on) { client.on("blockchain" as any, 'networkStatus', (result) => { - setNetworkName(`${result.network.name} (Chain id: ${result.network.id})`) + setNetworkName(`${result.network.name} ${result.network.id !== ' - ' ? `(Chain id: ${result.network.id})` : ''}`) }) } return () => {