mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-17 10:32:01 +00:00
Update DiscoveryActions.js
This commit is contained in:
parent
0c04aef293
commit
9c63aae9d4
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import TrezorConnect from 'trezor-connect';
|
import TrezorConnect from 'trezor-connect';
|
||||||
import * as DISCOVERY from 'actions/constants/discovery';
|
import * as DISCOVERY from 'actions/constants/discovery';
|
||||||
// import { createAccountTokens } from 'actions/TokenActions';
|
import { createAccountTokens } from 'actions/TokenActions';
|
||||||
import { enhanceAccount } from 'utils/accountUtils';
|
import { enhanceAccount } from 'utils/accountUtils';
|
||||||
import type { PromiseAction, Dispatch, GetState, TrezorDevice, Network, Account } from 'flowtype';
|
import type { PromiseAction, Dispatch, GetState, TrezorDevice, Network, Account } from 'flowtype';
|
||||||
import type { Discovery } from 'reducers/DiscoveryReducer';
|
import type { Discovery } from 'reducers/DiscoveryReducer';
|
||||||
@ -60,9 +60,9 @@ export const discoverAccount = (
|
|||||||
device,
|
device,
|
||||||
});
|
});
|
||||||
|
|
||||||
// if (response.payload.tokens) {
|
if (response.payload.tokens) {
|
||||||
// dispatch(createAccountTokens(account, response.payload.tokens));
|
dispatch(createAccountTokens(account, response.payload.tokens));
|
||||||
// }
|
}
|
||||||
|
|
||||||
return account;
|
return account;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user