diff --git a/packages/connectkit/src/hooks/connectors/useInjectedWallet.tsx b/packages/connectkit/src/hooks/connectors/useInjectedWallet.tsx index 89317cc3..6ed50d8e 100644 --- a/packages/connectkit/src/hooks/connectors/useInjectedWallet.tsx +++ b/packages/connectkit/src/hooks/connectors/useInjectedWallet.tsx @@ -1,5 +1,6 @@ import { useInjectedConnector } from '../useConnectors'; import useDefaultWallets from '../../wallets/useDefaultWallets'; +import { WalletProps } from '../../wallets/wallet'; import Logos from '../../assets/logos'; export const useInjectedWallet = () => { @@ -38,18 +39,19 @@ export const useInjectedWallet = () => { }; const getWallet = () => { - const installedWallets = wallets.filter((wallet: any) => wallet.installed); + const installedWallets = wallets.filter((wallet) => wallet.installed); if (installedWallets.length > 0) { return installedWallets[0]; } else { - return { + const wallet: WalletProps = { id: 'injected', name: getInjectedNames()?.[0] ?? 'Browser Wallet', shortName: getInjectedNames()?.[0]?.replace(' Wallet', '') ?? 'Browser', logos: { default: , }, - }; + } + return wallet; } };