Skip to content

Commit

Permalink
fix: type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Oct 1, 2024
1 parent d595eee commit ab04780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-polkagate/src/util/getLogo2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function getLogo2 (info: string | undefined | null | Chain, token
let mayBeExternalLogo;
const iconName = sanitizeChainName(chainNameFromGenesisHash || (info as Chain)?.name || (info as string))?.toLowerCase();

const endpoint = endpoints.find(({ info, text }) => info?.toLowerCase() === iconName || text?.replace(/\s/g, '')?.toLowerCase() === iconName);
const endpoint = endpoints.find(({ info, text }) => info?.toLowerCase() === iconName || (text as string)?.replace(/\s/g, '')?.toLowerCase() === iconName);

if (!endpoint) {
mayBeExternalLogo = Object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function getChainEndpoints (chainName, userAddedEndpoints) {
endpoint.info &&
(
endpoint.info.toLowerCase() === chainName.toLowerCase() ||
//@ts-ignore
endpoint.text?.replace(/\s/g, '')?.toLowerCase() === chainName.toLowerCase()
) &&
!endpoint.isDisabled && !endpoint?.isLightClient
Expand Down

0 comments on commit ab04780

Please sign in to comment.