Remove the ability to clear tokenByAddress. It should simply be updated.
This commit is contained in:
@@ -140,13 +140,6 @@ export function reducer(state: State = INITIAL_STATE, action: Action) {
|
||||
};
|
||||
}
|
||||
|
||||
case ActionTypes.ClearTokenByAddress: {
|
||||
return {
|
||||
...state,
|
||||
tokenByAddress: {},
|
||||
};
|
||||
}
|
||||
|
||||
case ActionTypes.AddTokenToTokenByAddress: {
|
||||
const newTokenByAddress = state.tokenByAddress;
|
||||
newTokenByAddress[action.data.address] = action.data;
|
||||
|
Reference in New Issue
Block a user