aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-10 03:22:46 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-10 03:22:46 +0800
commit474db7c18de63429f72511796291ff135c77f10b (patch)
tree63eee7214fafd8d69cb982036906a6c1e651b7d7 /packages/instant/src/redux
parent39657b633bd386526f5772238cbebfb976427c07 (diff)
downloaddexon-sol-tools-474db7c18de63429f72511796291ff135c77f10b.tar
dexon-sol-tools-474db7c18de63429f72511796291ff135c77f10b.tar.gz
dexon-sol-tools-474db7c18de63429f72511796291ff135c77f10b.tar.bz2
dexon-sol-tools-474db7c18de63429f72511796291ff135c77f10b.tar.lz
dexon-sol-tools-474db7c18de63429f72511796291ff135c77f10b.tar.xz
dexon-sol-tools-474db7c18de63429f72511796291ff135c77f10b.tar.zst
dexon-sol-tools-474db7c18de63429f72511796291ff135c77f10b.zip
Emulate named parameters with interface
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r--packages/instant/src/redux/async_data.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts
index c7fe4cd0e..61de54d82 100644
--- a/packages/instant/src/redux/async_data.ts
+++ b/packages/instant/src/redux/async_data.ts
@@ -74,7 +74,8 @@ export const asyncData = {
return;
}
},
- fetchCurrentBuyQuoteAndDispatchToStore: async (store: Store, setPending: boolean) => {
+ fetchCurrentBuyQuoteAndDispatchToStore: async (options: { store: Store; setPending: boolean }) => {
+ const { store, setPending } = options;
const { buyOrderState, providerState, selectedAsset, selectedAssetAmount, affiliateInfo } = store.getState();
const assetBuyer = providerState.assetBuyer;
if (