Skip to content

Commit

Permalink
fix: don't complain about used chain id for builtin network (#10418)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleBill committed Aug 16, 2023
1 parent 5dc5721 commit 66abc3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function useWarnings(formChainId: number, formSymbol?: string) {
const chainIdWarning = useMemo(() => {
if (!formChainId) return
const duplicated = networks.find((x) => x.chainId === formChainId)
if (!duplicated) return
if (!duplicated?.isCustomized) return
return t('chain_id_is_used_by', { name: duplicated.name })
}, [formChainId, networks])
const { data: chains = EMPTY_LIST } = useQuery(['chain-list'], fetchChains)
Expand Down

0 comments on commit 66abc3c

Please sign in to comment.