diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-29 06:17:26 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-29 06:17:26 +0800 |
commit | 208ee935c843cfff9f0559a4c4058af3908f6261 (patch) | |
tree | e3ae1675f9688a2b51baea5100ab6f5dccbcb27d /packages/instant/src/redux | |
parent | ec01893e9c987fcbd3fd7bcb4ec34498a6f516cc (diff) | |
download | dexon-0x-contracts-208ee935c843cfff9f0559a4c4058af3908f6261.tar dexon-0x-contracts-208ee935c843cfff9f0559a4c4058af3908f6261.tar.gz dexon-0x-contracts-208ee935c843cfff9f0559a4c4058af3908f6261.tar.bz2 dexon-0x-contracts-208ee935c843cfff9f0559a4c4058af3908f6261.tar.lz dexon-0x-contracts-208ee935c843cfff9f0559a4c4058af3908f6261.tar.xz dexon-0x-contracts-208ee935c843cfff9f0559a4c4058af3908f6261.tar.zst dexon-0x-contracts-208ee935c843cfff9f0559a4c4058af3908f6261.zip |
Move fetch origin out of options
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r-- | packages/instant/src/redux/async_data.ts | 5 |
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, }, ); |