ledger.instructionSteps.closeLedgerLive
diff --git a/src/app/pages/ConnectDevicePage/__tests__/index.test.tsx b/src/app/pages/ConnectDevicePage/__tests__/index.test.tsx
index 627344b6bf..6c6513c310 100644
--- a/src/app/pages/ConnectDevicePage/__tests__/index.test.tsx
+++ b/src/app/pages/ConnectDevicePage/__tests__/index.test.tsx
@@ -4,6 +4,7 @@ import userEvent from '@testing-library/user-event'
import { requestDevice } from 'app/lib/ledger'
import { importAccountsActions } from 'app/state/importaccounts'
import { ConnectDevicePage } from '..'
+import { WalletType } from '../../../state/wallet/types'
jest.mock('app/lib/ledger')
@@ -31,7 +32,7 @@ describe('', () => {
expect(screen.getByLabelText('Status is okay')).toBeInTheDocument()
expect(screen.queryByRole('button')).not.toBeInTheDocument()
expect(mockDispatch).toHaveBeenCalledWith({
- payload: undefined,
+ payload: WalletType.UsbLedger,
type: importAccountsActions.enumerateAccountsFromLedger.type,
})
})
diff --git a/src/app/pages/ConnectDevicePage/index.tsx b/src/app/pages/ConnectDevicePage/index.tsx
index d41bdf8e2d..88b6a4bb8e 100644
--- a/src/app/pages/ConnectDevicePage/index.tsx
+++ b/src/app/pages/ConnectDevicePage/index.tsx
@@ -14,6 +14,7 @@ import { WalletErrors } from 'types/errors'
import { importAccountsActions } from 'app/state/importaccounts'
import { requestDevice } from 'app/lib/ledger'
import logotype from '../../../../public/logo192.png'
+import { WalletType } from '../../state/wallet/types'
type ConnectionStatus = 'connected' | 'disconnected' | 'connecting' | 'error'
type ConnectionStatusIconPros = {
@@ -53,7 +54,7 @@ export function ConnectDevicePage() {
const device = await requestDevice()
if (device) {
setConnection('connected')
- dispatch(importAccountsActions.enumerateAccountsFromLedger())
+ dispatch(importAccountsActions.enumerateAccountsFromLedger(WalletType.UsbLedger))
}
} catch {
setConnection('error')
@@ -82,7 +83,10 @@ export function ConnectDevicePage() {
- {t('ledger.instructionSteps.connectLedger', 'Connect your Ledger device to the computer')}
+ {t(
+ 'ledger.instructionSteps.connectUsbLedger',
+ 'Connect your USB Ledger device to the computer',
+ )}
{t('ledger.instructionSteps.closeLedgerLive', 'Close Ledger Live app on the computer')}
{t('ledger.instructionSteps.openOasisApp', 'Open the Oasis App on your Ledger device')}