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 1, 2024
1 parent 70f656b commit 7fee827
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 7fee827

Please sign in to comment.