1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-26 17:08:07 +00:00

removed WEB3.READY

This commit is contained in:
Szymon Lesisz 2018-09-03 17:45:50 +02:00
parent b5a885907b
commit 2280633b5d
2 changed files with 2 additions and 3 deletions

View File

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

View File

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