Skip to content

Commit

Permalink
Fix SearchableChainDropdown error when no chain is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelwedler committed Oct 15, 2024
1 parent e79d089 commit dacce46
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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})`
}

Expand Down

0 comments on commit dacce46

Please sign in to comment.