removed WEB3.READY

pull/25/head
Szymon Lesisz 6 years ago
parent b5a885907b
commit 2280633b5d

@ -2,7 +2,7 @@
import { LOCATION_CHANGE } from 'react-router-redux';
import { DEVICE } from 'trezor-connect';
import { DEVICE, TRANSPORT } from 'trezor-connect';
import * as MODAL from 'actions/constants/modal';
import * as WEB3 from 'actions/constants/web3';
import * as WALLET from 'actions/constants/wallet';
@ -41,7 +41,7 @@ export default function wallet(state: State = initialState, action: Action): Sta
initialPathname: action.pathname,
};
case WEB3.READY:
case TRANSPORT.START:
return {
...state,
ready: true,

@ -31,7 +31,6 @@ const TrezorConnectService: Middleware = (api: MiddlewareAPI) => (next: Middlewa
// TODO: check if modal is open
// api.dispatch( push('/') );
} else if (action.type === TRANSPORT.START) {
// api.dispatch({ type: WEB3.READY });
api.dispatch(TrezorConnectActions.postInit());
} else if (action.type === DEVICE.DISCONNECT) {
api.dispatch(TrezorConnectActions.deviceDisconnect(action.device));

Loading…
Cancel
Save