aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/store.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-17 02:25:52 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 05:44:39 +0800
commitdb77cd10c550803c4f3fac585adc0a7f6ffa8999 (patch)
treed575b28199e32fd0ebdbac831e3839cc4fa2aa10 /packages/instant/src/redux/store.ts
parentf36352be47a3caf92e16e3965c86b593bfc46fea (diff)
downloaddexon-0x-contracts-db77cd10c550803c4f3fac585adc0a7f6ffa8999.tar.gz
dexon-0x-contracts-db77cd10c550803c4f3fac585adc0a7f6ffa8999.tar.zst
dexon-0x-contracts-db77cd10c550803c4f3fac585adc0a7f6ffa8999.zip
feat(instant): Handle AssetBuyer errors
Diffstat (limited to 'packages/instant/src/redux/store.ts')
-rw-r--r--packages/instant/src/redux/store.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/redux/store.ts b/packages/instant/src/redux/store.ts
index fcd19f9a8..8d9fe34cb 100644
--- a/packages/instant/src/redux/store.ts
+++ b/packages/instant/src/redux/store.ts
@@ -3,4 +3,5 @@ import { createStore, Store as ReduxStore } from 'redux';
import { reducer, State } from './reducer';
-export const store: ReduxStore<State> = createStore(reducer);
+const reduxDevTools = (window as any).__REDUX_DEVTOOLS_EXTENSION__;
+export const store: ReduxStore<State> = createStore(reducer, reduxDevTools && reduxDevTools());