aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-10 03:39:36 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-10 03:39:36 +0800
commitcc8debe53b9a6efc75b91f1b6c47f0820c3beb8c (patch)
tree7f59b73ca8f436e94fcb872eced183b95c25e0b3 /packages/instant/src/redux
parent36b8c9c5dd6cc650eaed8a2a6abd8f596c189fed (diff)
downloaddexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar
dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.gz
dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.bz2
dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.lz
dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.xz
dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.zst
dexon-sol-tools-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.zip
Linting and renaming variables
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r--packages/instant/src/redux/async_data.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts
index 1f1cafdf3..a47c7a605 100644
--- a/packages/instant/src/redux/async_data.ts
+++ b/packages/instant/src/redux/async_data.ts
@@ -36,11 +36,11 @@ export const asyncData = {
store.dispatch(actions.setAvailableAssets([]));
}
},
- fetchAccountInfoAndDispatchToStore: async (options: { store: Store; setLoading: boolean }) => {
- const { store, setLoading } = options;
+ fetchAccountInfoAndDispatchToStore: async (options: { store: Store; shouldSetToLoading: boolean }) => {
+ const { store, shouldSetToLoading } = options;
const { providerState } = store.getState();
const web3Wrapper = providerState.web3Wrapper;
- if (setLoading && providerState.account.state !== AccountState.Loading) {
+ if (shouldSetToLoading && providerState.account.state !== AccountState.Loading) {
store.dispatch(actions.setAccountStateLoading());
}
let availableAddresses: string[];
@@ -75,8 +75,8 @@ export const asyncData = {
return;
}
},
- fetchCurrentBuyQuoteAndDispatchToStore: async (options: { store: Store; setPending: boolean }) => {
- const { store, setPending } = options;
+ fetchCurrentBuyQuoteAndDispatchToStore: async (options: { store: Store; shouldSetPending: boolean }) => {
+ const { store, shouldSetPending } = options;
const { buyOrderState, providerState, selectedAsset, selectedAssetAmount, affiliateInfo } = store.getState();
const assetBuyer = providerState.assetBuyer;
if (
@@ -90,7 +90,7 @@ export const asyncData = {
store.dispatch,
selectedAsset as ERC20Asset,
selectedAssetAmount,
- setPending,
+ shouldSetPending,
affiliateInfo,
);
}