Skip to content

Commit

Permalink
feat: sync staging → main
Browse files Browse the repository at this point in the history
Signed-off-by: Griko Nibras <[email protected]>
  • Loading branch information
grikomsn committed Jan 13, 2024
2 parents cb4b1ff + 32f2d36 commit b41d76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ChainSelect/ChainSelectContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ChainSelectContent({ chains, onChange, onClose }: Props) {
const filteredChains = useMemo(() => {
if (!searchValue) return chains;
return matchSorter(chains, searchValue, {
keys: ["chainID", "chainName"],
keys: ["chainID", "chainName", "prettyName"],
});
}, [chains, searchValue]);

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function useChains<T = Chain[]>(args: UseChainsQueryArgs<T> = {}) {
.map((chain): Chain => {
return {
...chain,
chainName: chainIdToName[chain.chainID],
chainName: chainIdToName[chain.chainID] || chain.chainName,
prettyName: chainIdToPrettyName[chain.chainID] || chain.chainName,
registryChainName: chainIdToName[chain.chainID],
};
Expand Down

1 comment on commit b41d76a

@vercel
Copy link

@vercel vercel bot commented on b41d76a Jan 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.