diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-30 00:56:35 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-30 00:56:35 +0800 |
commit | 8175c7c08575f864578d150bc9ae0800f5eaf037 (patch) | |
tree | 8c781c9ab2b1442c3e78691b579f017cc4f46480 /packages/website/ts/redux/reducer.ts | |
parent | 5c2d725721407878ffda936b6e6ee3ff97b80434 (diff) | |
download | dexon-sol-tools-8175c7c08575f864578d150bc9ae0800f5eaf037.tar dexon-sol-tools-8175c7c08575f864578d150bc9ae0800f5eaf037.tar.gz dexon-sol-tools-8175c7c08575f864578d150bc9ae0800f5eaf037.tar.bz2 dexon-sol-tools-8175c7c08575f864578d150bc9ae0800f5eaf037.tar.lz dexon-sol-tools-8175c7c08575f864578d150bc9ae0800f5eaf037.tar.xz dexon-sol-tools-8175c7c08575f864578d150bc9ae0800f5eaf037.tar.zst dexon-sol-tools-8175c7c08575f864578d150bc9ae0800f5eaf037.zip |
Remove the ability to clear tokenByAddress. It should simply be updated.
Diffstat (limited to 'packages/website/ts/redux/reducer.ts')
-rw-r--r-- | packages/website/ts/redux/reducer.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts index 427a8dd4a..f94da003f 100644 --- a/packages/website/ts/redux/reducer.ts +++ b/packages/website/ts/redux/reducer.ts @@ -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; |