From e293ad95f7d342855da53bdc6b06a297cd889dc8 Mon Sep 17 00:00:00 2001 From: Manuel Wedler Date: Tue, 1 Oct 2024 15:56:41 +0200 Subject: [PATCH] Fix SearchableChainDropdown error when no chain is selected --- .../src/app/components/SearchableChainDropdown.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/contract-verification/src/app/components/SearchableChainDropdown.tsx b/apps/contract-verification/src/app/components/SearchableChainDropdown.tsx index c14d2a7621..c6f78c5f2f 100644 --- a/apps/contract-verification/src/app/components/SearchableChainDropdown.tsx +++ b/apps/contract-verification/src/app/components/SearchableChainDropdown.tsx @@ -4,6 +4,7 @@ import type { Chain } from '../types' import { AppContext } from '../AppContext' function getChainDescriptor(chain: Chain): string { + if (!chain) return '' return `${chain.title || chain.name} (${chain.chainId})` }