Skip to content

Commit

Permalink
Fix wallet icon resolve in useSolana
Browse files Browse the repository at this point in the history
  • Loading branch information
arentant committed Dec 12, 2024
1 parent 389bc66 commit 3f40171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wallets/solana/useSolana.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function useSolana({ network }: { network: Network | undefined })
address: connectedAddress,
connector: connectedAdapterName,
providerName: name,
icon: resolveWalletConnectorIcon({ connector: String(connectedAdapterName), address: connectedAddress }),
icon: resolveWalletConnectorIcon({ connector: String(connectedAdapterName), address: connectedAddress, iconUrl: connectedWallet?.adapter.icon }),
disconnect,
connect: () => connectWallet(),
isActive: true,
Expand Down Expand Up @@ -73,7 +73,7 @@ export default function useSolana({ network }: { network: Network | undefined })
address: connectedAddress,
connector: connectedWallet?.adapter.name,
providerName: name,
icon: resolveWalletConnectorIcon({ connector: String(connectedWallet?.adapter.name), address: connectedAddress }),
icon: resolveWalletConnectorIcon({ connector: String(connectedWallet?.adapter.name), address: connectedAddress, iconUrl: connectedWallet?.adapter.icon }),
disconnect,
connect: () => connectWallet(),
isActive: true,
Expand Down

0 comments on commit 3f40171

Please sign in to comment.