1
0
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:
Szymon Lesisz 2018-08-08 15:35:49 +02:00
parent 88208f3509
commit 613302fb23

View File

@ -44,16 +44,6 @@ const TrezorConnectService: Middleware = (api: MiddlewareAPI) => (next: Middlewa
api.dispatch(initWeb3());
} else if (action.type === WEB3.READY) {
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) {
api.dispatch(TrezorConnectActions.deviceDisconnect(action.device));
} else if (action.type === CONNECT.REMEMBER_REQUEST) {