Skip to content

Commit

Permalink
fix: using wrong connector name/icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussone committed Oct 31, 2024
1 parent 6425b27 commit e991747
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/helpers/mapModalWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ export function getModalWallet(
const connector = extractConnector(
connectorOrCompoundConnector,
) as StarknetkitConnector

const isCompoundConnector = (
connectorOrCompoundConnector as StarknetkitCompoundConnector
).isCompoundConnector

return {
name: connector.name,
name: isCompoundConnector
? connectorOrCompoundConnector.name
: connector.name,
id: connector.id,
icon: connector.icon,
icon: isCompoundConnector
? connectorOrCompoundConnector.icon
: connector.icon,
connector: connectorOrCompoundConnector,
installed: true,
title:
Expand Down

0 comments on commit e991747

Please sign in to comment.