aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-10 03:28:08 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-10 03:28:08 +0800
commit36b8c9c5dd6cc650eaed8a2a6abd8f596c189fed (patch)
treeb08cb0540bfeb9d75dbbadbd6be4c582271c7204 /packages/instant/src/redux
parent474db7c18de63429f72511796291ff135c77f10b (diff)
downloaddexon-sol-tools-36b8c9c5dd6cc650eaed8a2a6abd8f596c189fed.tar.gz
dexon-sol-tools-36b8c9c5dd6cc650eaed8a2a6abd8f596c189fed.tar.zst
dexon-sol-tools-36b8c9c5dd6cc650eaed8a2a6abd8f596c189fed.zip
Use interface like named parameters here
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r--packages/instant/src/redux/async_data.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts
index 61de54d82..1f1cafdf3 100644
--- a/packages/instant/src/redux/async_data.ts
+++ b/packages/instant/src/redux/async_data.ts
@@ -36,10 +36,11 @@ export const asyncData = {
store.dispatch(actions.setAvailableAssets([]));
}
},
- fetchAccountInfoAndDispatchToStore: async (store: Store, options = { setLoading: true }) => {
+ fetchAccountInfoAndDispatchToStore: async (options: { store: Store; setLoading: boolean }) => {
+ const { store, setLoading } = options;
const { providerState } = store.getState();
const web3Wrapper = providerState.web3Wrapper;
- if (options.setLoading && providerState.account.state !== AccountState.Loading) {
+ if (setLoading && providerState.account.state !== AccountState.Loading) {
store.dispatch(actions.setAccountStateLoading());
}
let availableAddresses: string[];