Skip to content

Commit dacce46

Browse files
committed
Fix SearchableChainDropdown error when no chain is selected
1 parent e79d089 commit dacce46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/contract-verification/src/app/components/SearchableChainDropdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { Chain } from '../types'
44
import { AppContext } from '../AppContext'
55

66
function getChainDescriptor(chain: Chain): string {
7+
if (!chain) return ''
78
return `${chain.title || chain.name} (${chain.chainId})`
89
}
910

0 commit comments

Comments
 (0)