aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-29 06:17:26 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-29 06:17:26 +0800
commit208ee935c843cfff9f0559a4c4058af3908f6261 (patch)
treee3ae1675f9688a2b51baea5100ab6f5dccbcb27d /packages/instant/src/redux
parentec01893e9c987fcbd3fd7bcb4ec34498a6f516cc (diff)
downloaddexon-sol-tools-208ee935c843cfff9f0559a4c4058af3908f6261.tar
dexon-sol-tools-208ee935c843cfff9f0559a4c4058af3908f6261.tar.gz
dexon-sol-tools-208ee935c843cfff9f0559a4c4058af3908f6261.tar.bz2
dexon-sol-tools-208ee935c843cfff9f0559a4c4058af3908f6261.tar.lz
dexon-sol-tools-208ee935c843cfff9f0559a4c4058af3908f6261.tar.xz
dexon-sol-tools-208ee935c843cfff9f0559a4c4058af3908f6261.tar.zst
dexon-sol-tools-208ee935c843cfff9f0559a4c4058af3908f6261.zip
Move fetch origin out of options
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 dc73fd9af..9fdcea3ca 100644
--- a/packages/instant/src/redux/async_data.ts
+++ b/packages/instant/src/redux/async_data.ts
@@ -84,7 +84,8 @@ export const asyncData = {
fetchCurrentBuyQuoteAndDispatchToStore: async (
state: State,
dispatch: Dispatch,
- options: { updateSilently: boolean; fetchOrigin: QuoteFetchOrigin },
+ fetchOrigin: QuoteFetchOrigin,
+ options: { updateSilently: boolean },
) => {
const { buyOrderState, providerState, selectedAsset, selectedAssetUnitAmount, affiliateInfo } = state;
const assetBuyer = providerState.assetBuyer;
@@ -99,10 +100,10 @@ export const asyncData = {
dispatch,
selectedAsset as ERC20Asset,
selectedAssetUnitAmount,
+ fetchOrigin,
{
setPending: !options.updateSilently,
dispatchErrors: !options.updateSilently,
- fetchOrigin: options.fetchOrigin,
affiliateInfo,
},
);