mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-25 16:38:08 +00:00
rename method
This commit is contained in:
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…
Reference in New Issue
Block a user