mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-13 20:08:56 +00:00
removed CONNECT.SELECT_DEVICE
This commit is contained in:
parent
6de33d5691
commit
6bc7a2a0f2
@ -37,12 +37,6 @@ import type {
|
||||
export type TrezorConnectAction = {
|
||||
type: typeof CONNECT.INITIALIZATION_ERROR,
|
||||
error: string
|
||||
} | {
|
||||
type: typeof CONNECT.SELECT_DEVICE,
|
||||
payload: ?{
|
||||
id: string,
|
||||
instance: ?number
|
||||
}
|
||||
} | {
|
||||
type: typeof CONNECT.COIN_CHANGED,
|
||||
payload: {
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
export const READY: 'connect__ready' = 'connect__ready';
|
||||
export const INITIALIZATION_ERROR: 'connect__init_error' = 'connect__init_error';
|
||||
export const SELECT_DEVICE: 'connect__select_device' = 'connect__select_device';
|
||||
|
||||
|
||||
export const DEVICE_FROM_STORAGE: 'connect__device_from_storage' = 'connect__device_from_storage';
|
||||
|
@ -130,7 +130,6 @@ const LocalStorageService: Middleware = (api: MiddlewareAPI) => (next: Middlewar
|
||||
case DEVICE.CHANGED :
|
||||
case DEVICE.DISCONNECT :
|
||||
case CONNECT.AUTH_DEVICE :
|
||||
case CONNECT.SELECT_DEVICE :
|
||||
save(api.dispatch, api.getState);
|
||||
break;
|
||||
|
||||
|
@ -131,17 +131,6 @@ const RouterService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa
|
||||
// redirectPath = `/device/${ devices[0].path }`;
|
||||
redirectPath = location.pathname;
|
||||
} else if (requestedParams.device) {
|
||||
|
||||
if (currentParams.device !== requestedParams.device || currentParams.deviceInstance !== requestedParams.deviceInstance) {
|
||||
postActions.push({
|
||||
type: CONNECT.SELECT_DEVICE,
|
||||
payload: {
|
||||
id: requestedParams.device,
|
||||
instance: requestedParams.deviceInstance ? parseInt(requestedParams.deviceInstance) : undefined
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (requestedParams.network !== currentParams.network) {
|
||||
postActions.push({
|
||||
type: CONNECT.COIN_CHANGED,
|
||||
|
Loading…
Reference in New Issue
Block a user