Skip to content

Commit

Permalink
Fix USB Ledger accounts not enumerating after Ledger connected
Browse files Browse the repository at this point in the history
  • Loading branch information
lubej committed Apr 29, 2024
1 parent 29c2557 commit e80e3ca
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/app/pages/OpenWalletPage/webextension.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import React from 'react'
import { useHref } from 'react-router-dom'
import { useHref, useNavigate } from 'react-router-dom'
import { openLedgerAccessPopup } from 'utils/webextension'
import { FromLedger } from './Features/FromLedger'

export function FromLedgerWebExtension() {
const href = useHref('/open-wallet/connect-device')
const navigate = useNavigate()

return <FromLedger webExtensionUSBLedgerAccess={() => openLedgerAccessPopup(href)} />
return (
<FromLedger
webExtensionUSBLedgerAccess={() => {
navigate('/open-wallet/ledger/usb')
openLedgerAccessPopup(href)
}}
/>
)
}

0 comments on commit e80e3ca

Please sign in to comment.