Fix bug where could not switch to Ledger and back
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user