mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-04 13:52:38 +00:00
Resolve conflict after rebase
This commit is contained in:
parent
f4eb4c9f8c
commit
6125b02973
@ -159,21 +159,6 @@ export const postInit = (): ThunkAction => (dispatch: Dispatch, getState: GetSta
|
|||||||
|
|
||||||
if (devices.length > 0) {
|
if (devices.length > 0) {
|
||||||
const unacquired: ?TrezorDevice = devices.find(d => d.features);
|
const unacquired: ?TrezorDevice = devices.find(d => d.features);
|
||||||
if (unacquired) {
|
|
||||||
dispatch(onSelectDevice(unacquired));
|
|
||||||
} else {
|
|
||||||
const latest: Array<TrezorDevice> = sortDevices(devices);
|
|
||||||
const firstConnected: ?TrezorDevice = latest.find(d => d.connected);
|
|
||||||
dispatch(onSelectDevice(firstConnected || latest[0]));
|
|
||||||
|
|
||||||
// TODO
|
|
||||||
if (initialParams) {
|
|
||||||
if (!initialParams.hasOwnProperty('network') && initialPathname !== getState().router.location.pathname) {
|
|
||||||
// dispatch( push(initialPathname) );
|
|
||||||
} else {
|
|
||||||
|
|
||||||
if (devices.length > 0) {
|
|
||||||
const unacquired: ?TrezorDevice = devices.find(d => d.type === 'unacquired');
|
|
||||||
if (unacquired) {
|
if (unacquired) {
|
||||||
dispatch( onSelectDevice(unacquired) );
|
dispatch( onSelectDevice(unacquired) );
|
||||||
} else {
|
} else {
|
||||||
@ -191,7 +176,6 @@ export const postInit = (): ThunkAction => (dispatch: Dispatch, getState: GetSta
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const sortDevices = (devices: Array<TrezorDevice>): Array<TrezorDevice> => devices.sort((a, b) => {
|
const sortDevices = (devices: Array<TrezorDevice>): Array<TrezorDevice> => devices.sort((a, b) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user