1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 00:18: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 { 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,

View File

@ -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));