mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
rename method
This commit is contained in:
parent
7c498e9012
commit
1d59046123
@ -126,7 +126,6 @@ export const init = (): AsyncAction => {
|
|||||||
await TrezorConnect.init({
|
await TrezorConnect.init({
|
||||||
transportReconnect: true,
|
transportReconnect: true,
|
||||||
// connectSrc: 'https://localhost:8088/',
|
// connectSrc: 'https://localhost:8088/',
|
||||||
// connectSrc: 'https://connect.trezor.io/tpm/',
|
|
||||||
connectSrc: 'https://sisyfos.trezor.io/',
|
connectSrc: 'https://sisyfos.trezor.io/',
|
||||||
debug: false,
|
debug: false,
|
||||||
popup: 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> => {
|
return async (dispatch: Dispatch, getState: GetState): Promise<void> => {
|
||||||
const selected: ?TrezorDevice = findSelectedDevice(getState().connect);
|
const selected: ?TrezorDevice = findSelectedDevice(getState().connect);
|
||||||
if (selected)
|
if (selected)
|
||||||
|
@ -107,7 +107,7 @@ const TrezorConnectService: Middleware = (api: MiddlewareAPI) => (next: Middlewa
|
|||||||
} else if (action.type === CONNECT.AUTH_DEVICE) {
|
} else if (action.type === CONNECT.AUTH_DEVICE) {
|
||||||
api.dispatch( DiscoveryActions.check() );
|
api.dispatch( DiscoveryActions.check() );
|
||||||
} else if (action.type === CONNECT.DUPLICATE) {
|
} 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) {
|
} else if (action.type === CONNECT.ACQUIRED || action.type === CONNECT.SELECT_DEVICE) {
|
||||||
api.dispatch( TrezorConnectActions.getSelectedDeviceState() );
|
api.dispatch( TrezorConnectActions.getSelectedDeviceState() );
|
||||||
} else if (action.type === CONNECT.COIN_CHANGED) {
|
} else if (action.type === CONNECT.COIN_CHANGED) {
|
||||||
|
Loading…
Reference in New Issue
Block a user