rename method

pull/2/merge
Szymon Lesisz 6 years ago
parent 7c498e9012
commit 1d59046123

@ -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<void> => {
const selected: ?TrezorDevice = findSelectedDevice(getState().connect);
if (selected)

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

Loading…
Cancel
Save