diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-30 18:16:13 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-30 18:16:13 +0800 |
commit | 86cc011212088801a778d947ae925cc0b1ddadf8 (patch) | |
tree | 9c12a4dc945d3dd23416d4ea1ccde438c9ed687e /packages/website/ts/redux/dispatcher.ts | |
parent | c0facfc28f65495a52f9405613fe4a08aff5d164 (diff) | |
download | dexon-sol-tools-86cc011212088801a778d947ae925cc0b1ddadf8.tar dexon-sol-tools-86cc011212088801a778d947ae925cc0b1ddadf8.tar.gz dexon-sol-tools-86cc011212088801a778d947ae925cc0b1ddadf8.tar.bz2 dexon-sol-tools-86cc011212088801a778d947ae925cc0b1ddadf8.tar.lz dexon-sol-tools-86cc011212088801a778d947ae925cc0b1ddadf8.tar.xz dexon-sol-tools-86cc011212088801a778d947ae925cc0b1ddadf8.tar.zst dexon-sol-tools-86cc011212088801a778d947ae925cc0b1ddadf8.zip |
Wholesale replace the tokenByAddress and de-dup properly
Diffstat (limited to 'packages/website/ts/redux/dispatcher.ts')
-rw-r--r-- | packages/website/ts/redux/dispatcher.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/website/ts/redux/dispatcher.ts b/packages/website/ts/redux/dispatcher.ts index 9df18e54c..aae7683ff 100644 --- a/packages/website/ts/redux/dispatcher.ts +++ b/packages/website/ts/redux/dispatcher.ts @@ -12,6 +12,7 @@ import { SideToAssetToken, SignatureData, Token, + TokenByAddress, TokenStateByAddress, } from 'ts/types'; @@ -121,10 +122,15 @@ export class Dispatcher { type: ActionTypes.RemoveTokenFromTokenByAddress, }); } - public batchDispatch(tokens: Token[], networkId: number, userAddress: string, sideToAssetToken: SideToAssetToken) { + public batchDispatch( + tokenByAddress: TokenByAddress, + networkId: number, + userAddress: string, + sideToAssetToken: SideToAssetToken, + ) { this._dispatch({ data: { - tokens, + tokenByAddress, networkId, userAddress, sideToAssetToken, |