diff --git a/src/js/actions/TrezorConnectActions.js b/src/js/actions/TrezorConnectActions.js index ea16274a..33b19f5a 100644 --- a/src/js/actions/TrezorConnectActions.js +++ b/src/js/actions/TrezorConnectActions.js @@ -126,7 +126,6 @@ export const init = (): AsyncAction => { await TrezorConnect.init({ transportReconnect: true, // connectSrc: 'https://localhost:8088/', - // connectSrc: 'https://connect.trezor.io/tpm/', connectSrc: 'https://sisyfos.trezor.io/', debug: false, popup: false, @@ -490,7 +489,7 @@ export const duplicateDevice = (device: TrezorDevice): AsyncAction => { } } -export const onDuplicateDevice = (): AsyncAction => { +export const selectDuplicatedDevice = (): AsyncAction => { return async (dispatch: Dispatch, getState: GetState): Promise => { const selected: ?TrezorDevice = findSelectedDevice(getState().connect); if (selected) diff --git a/src/js/services/TrezorConnectService.js b/src/js/services/TrezorConnectService.js index 09dcad4c..3fa08649 100644 --- a/src/js/services/TrezorConnectService.js +++ b/src/js/services/TrezorConnectService.js @@ -107,7 +107,7 @@ const TrezorConnectService: Middleware = (api: MiddlewareAPI) => (next: Middlewa } else if (action.type === CONNECT.AUTH_DEVICE) { api.dispatch( DiscoveryActions.check() ); } else if (action.type === CONNECT.DUPLICATE) { - api.dispatch( TrezorConnectActions.onDuplicateDevice() ); + api.dispatch( TrezorConnectActions.selectDuplicatedDevice() ); } else if (action.type === CONNECT.ACQUIRED || action.type === CONNECT.SELECT_DEVICE) { api.dispatch( TrezorConnectActions.getSelectedDeviceState() ); } else if (action.type === CONNECT.COIN_CHANGED) {