mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-27 10:22:35 +00:00
Update TokenActions.js
This commit is contained in:
parent
f6e689b4d7
commit
d98c300e77
@ -103,9 +103,9 @@ export const add = (token: NetworkToken, account: Account): AsyncAction => async
|
|||||||
dispatch(setBalance(token.address, account.descriptor, tokenBalance));
|
dispatch(setBalance(token.address, account.descriptor, tokenBalance));
|
||||||
};
|
};
|
||||||
|
|
||||||
export const createAccountTokens = (account: Account, tokens: TokenInfo[]) => async (
|
export const createAccountTokens = (account: Account, tokens: TokenInfo[]): AsyncAction => async (
|
||||||
dispatch: Dispatch
|
dispatch: Dispatch
|
||||||
) => {
|
): Promise<void> => {
|
||||||
tokens.forEach(t => {
|
tokens.forEach(t => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: TOKEN.ADD,
|
type: TOKEN.ADD,
|
||||||
|
Loading…
Reference in New Issue
Block a user