Fix bug where could not switch to Ledger and back

This commit is contained in:
Fabio Berger
2018-01-28 17:45:20 +01:00
parent 6206ebc994
commit 005a02efeb
6 changed files with 65 additions and 31 deletions

View File

@@ -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,