diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-19 07:04:30 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-19 07:04:51 +0800 |
commit | ad6dc8e891059f00f2ddda1884bbc78c1e47ea24 (patch) | |
tree | 17e06dedb3dab0617586fb1ee585466266ad577d /packages/instant/src/redux/store.ts | |
parent | 44635f34f0df4da935ed4793566995873aac5055 (diff) | |
download | dexon-0x-contracts-ad6dc8e891059f00f2ddda1884bbc78c1e47ea24.tar.gz dexon-0x-contracts-ad6dc8e891059f00f2ddda1884bbc78c1e47ea24.tar.zst dexon-0x-contracts-ad6dc8e891059f00f2ddda1884bbc78c1e47ea24.zip |
fix: refactor ZeroExInstant state creation logic and fix bug
Diffstat (limited to 'packages/instant/src/redux/store.ts')
-rw-r--r-- | packages/instant/src/redux/store.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/instant/src/redux/store.ts b/packages/instant/src/redux/store.ts index 505234299..88d964bbc 100644 --- a/packages/instant/src/redux/store.ts +++ b/packages/instant/src/redux/store.ts @@ -9,10 +9,9 @@ export type Store = ReduxStore<State>; export const store = { create: (withState: Partial<State>): Store => { const allInitialState = { - INITIAL_STATE, + ...INITIAL_STATE, ...withState, }; return createStore(reducer, allInitialState, devToolsEnhancer({})); }, }; - |