Skip to content

Commit

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

if (installedLegacyWallets.length > 0) {
const installedWallets = wallets.filter(
(wallet) => wallet.id !== installedLegacyWallets[0].id
);
alert(JSON.stringify(installedWallets.map((wallet) => wallet.id)));

const filteredWallets = installedLegacyWallets.filter(
(wallet) => !installedWallets.find((w) => w.name === wallet.name)
);
alert(JSON.stringify(filteredWallets.map((wallet) => wallet.name)));

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

0 comments on commit 4585985

Please sign in to comment.