Skip to content

Commit

Permalink
dev log
Browse files Browse the repository at this point in the history
  • Loading branch information
lochie committed Jan 10, 2024
1 parent fbf9735 commit f43a2cd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,18 @@ export const useInjectedWallet = () => {
const installedLegacyWallets = injectedWallets.filter(
(wallet) => wallet.installed
);
console.log({ installedLegacyWallets });

if (installedLegacyWallets.length > 0) {
const installedWallets = wallets.filter(
(wallet) => wallet.id !== installedLegacyWallets[0].id
);
console.log({ installedWallets });

const filteredWallets = installedLegacyWallets.filter(
(wallet) => !installedWallets.find((w) => w.name === wallet.name)
);
console.log({ filteredWallets });

if (filteredWallets.length > 0) return filteredWallets[0];
}
Expand Down

0 comments on commit f43a2cd

Please sign in to comment.