aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux/dispatcher.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-29 00:45:20 +0800
committerFabio Berger <me@fabioberger.com>2018-01-29 00:45:20 +0800
commit005a02efeb5ac874e1c1a4dd6679bfa3cc21b1b1 (patch)
tree63aebaf67a71d8587e19a684c394c0ea91b48116 /packages/website/ts/redux/dispatcher.ts
parent6206ebc994a2cf76b90ac426218d6ed18b74a072 (diff)
downloaddexon-0x-contracts-005a02efeb5ac874e1c1a4dd6679bfa3cc21b1b1.tar
dexon-0x-contracts-005a02efeb5ac874e1c1a4dd6679bfa3cc21b1b1.tar.gz
dexon-0x-contracts-005a02efeb5ac874e1c1a4dd6679bfa3cc21b1b1.tar.bz2
dexon-0x-contracts-005a02efeb5ac874e1c1a4dd6679bfa3cc21b1b1.tar.lz
dexon-0x-contracts-005a02efeb5ac874e1c1a4dd6679bfa3cc21b1b1.tar.xz
dexon-0x-contracts-005a02efeb5ac874e1c1a4dd6679bfa3cc21b1b1.tar.zst
dexon-0x-contracts-005a02efeb5ac874e1c1a4dd6679bfa3cc21b1b1.zip
Fix bug where could not switch to Ledger and back
Diffstat (limited to 'packages/website/ts/redux/dispatcher.ts')
-rw-r--r--packages/website/ts/redux/dispatcher.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/website/ts/redux/dispatcher.ts b/packages/website/ts/redux/dispatcher.ts
index dea0a8bfe..c7e0a5af3 100644
--- a/packages/website/ts/redux/dispatcher.ts
+++ b/packages/website/ts/redux/dispatcher.ts
@@ -9,6 +9,7 @@ import {
ProviderType,
ScreenWidths,
Side,
+ SideToAssetToken,
SignatureData,
Token,
TokenStateByAddress,
@@ -125,6 +126,17 @@ export class Dispatcher {
type: ActionTypes.ClearTokenByAddress,
});
}
+ public batchDispatch(tokens: Token[], networkId: number, userAddress: string, sideToAssetToken: SideToAssetToken) {
+ this._dispatch({
+ data: {
+ tokens,
+ networkId,
+ userAddress,
+ sideToAssetToken,
+ },
+ type: ActionTypes.BatchDispatch,
+ });
+ }
public updateTokenByAddress(tokens: Token[]) {
this._dispatch({
data: tokens,