mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
removed TRANSPORT.UNREADABLE action (not used)
This commit is contained in:
parent
88208f3509
commit
613302fb23
@ -44,16 +44,6 @@ const TrezorConnectService: Middleware = (api: MiddlewareAPI) => (next: Middlewa
|
|||||||
api.dispatch(initWeb3());
|
api.dispatch(initWeb3());
|
||||||
} else if (action.type === WEB3.READY) {
|
} else if (action.type === WEB3.READY) {
|
||||||
api.dispatch(TrezorConnectActions.postInit());
|
api.dispatch(TrezorConnectActions.postInit());
|
||||||
} else if (action.type === TRANSPORT.UNREADABLE) {
|
|
||||||
api.dispatch({
|
|
||||||
type: NOTIFICATION.ADD,
|
|
||||||
payload: {
|
|
||||||
type: 'error',
|
|
||||||
title: 'Unreadable HID device',
|
|
||||||
message: '',
|
|
||||||
cancelable: true,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
} else if (action.type === DEVICE.DISCONNECT) {
|
} else if (action.type === DEVICE.DISCONNECT) {
|
||||||
api.dispatch(TrezorConnectActions.deviceDisconnect(action.device));
|
api.dispatch(TrezorConnectActions.deviceDisconnect(action.device));
|
||||||
} else if (action.type === CONNECT.REMEMBER_REQUEST) {
|
} else if (action.type === CONNECT.REMEMBER_REQUEST) {
|
||||||
|
Loading…
Reference in New Issue
Block a user