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 authored and Aniket-Engg committed Oct 15, 2024
1 parent 397be8d commit e293ad9
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 e293ad9

Please sign in to comment.