Skip to content

Commit

Permalink
Fix wallet connect (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser authored Jul 18, 2024
1 parent b7962b8 commit a559acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centrifuge-react/src/components/WalletMenu/WalletMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ type WalletMenuProps = {

export function WalletMenu({ menuItems }: WalletMenuProps) {
const ctx = useWallet()
const { connectedType, isEvmOnSubstrate } = ctx
const accounts = connectedType && ctx[isEvmOnSubstrate ? 'substrate' : 'evm'].accounts
const { connectedType } = ctx
const accounts = connectedType && ctx[connectedType].accounts
const address = useAddress()
return address ? (
<ConnectedMenu menuItems={menuItems} />
Expand Down

0 comments on commit a559acd

Please sign in to comment.