1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-28 18:08:08 +00:00

router fix

fixed #84
This commit is contained in:
Szymon Lesisz 2018-09-25 12:19:09 +02:00
parent 1aed318741
commit 51e65ef31f
2 changed files with 1 additions and 5 deletions

View File

@ -256,8 +256,7 @@ export const isLandingPageUrl = ($url?: string): PayloadAction<boolean> => (disp
if (typeof url !== 'string') {
url = getState().router.location.pathname;
}
// TODO: add more landing page cases/urls to config.json (like /tools etc)
return (url === '/' || url === '/bridge');
return url === '/';
};
/*

View File

@ -52,9 +52,6 @@ const WalletService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa
if (action.device) {
// try to authorize device
api.dispatch(TrezorConnectActions.getSelectedDeviceState());
} else {
// try select different device
api.dispatch(RouterActions.selectFirstAvailableDevice());
}
break;
case DEVICE.CONNECT: