mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-28 18:08:08 +00:00
parent
1aed318741
commit
51e65ef31f
@ -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 === '/';
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user