diff options
author | Steve Klebanoff <steve@0xproject.com> | 2018-11-16 07:29:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-16 07:29:22 +0800 |
commit | 8c96720080b41011d85465c2b5d9a0a3719da604 (patch) | |
tree | 88ee3a9ce98fddccc503f2f3baa7c191ccaae2bd /packages/instant/src/redux/async_data.ts | |
parent | 312dfb957267d5c96fa7d922d2f21112019fb6fa (diff) | |
parent | 33a156d9b5278c0e85a1fa0fe158440a41bcc60e (diff) | |
download | dexon-sol-tools-8c96720080b41011d85465c2b5d9a0a3719da604.tar dexon-sol-tools-8c96720080b41011d85465c2b5d9a0a3719da604.tar.gz dexon-sol-tools-8c96720080b41011d85465c2b5d9a0a3719da604.tar.bz2 dexon-sol-tools-8c96720080b41011d85465c2b5d9a0a3719da604.tar.lz dexon-sol-tools-8c96720080b41011d85465c2b5d9a0a3719da604.tar.xz dexon-sol-tools-8c96720080b41011d85465c2b5d9a0a3719da604.tar.zst dexon-sol-tools-8c96720080b41011d85465c2b5d9a0a3719da604.zip |
Merge pull request #1273 from 0xProject/fix/instant/heartbeat-errors
[instant] Don't show errors from heartbeat buy quote calls
Diffstat (limited to 'packages/instant/src/redux/async_data.ts')
-rw-r--r-- | packages/instant/src/redux/async_data.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts index a1952e429..5d30388b8 100644 --- a/packages/instant/src/redux/async_data.ts +++ b/packages/instant/src/redux/async_data.ts @@ -82,7 +82,7 @@ export const asyncData = { fetchCurrentBuyQuoteAndDispatchToStore: async ( state: State, dispatch: Dispatch, - shouldSetPending: boolean = false, + options: { updateSilently: boolean }, ) => { const { buyOrderState, providerState, selectedAsset, selectedAssetUnitAmount, affiliateInfo } = state; const assetBuyer = providerState.assetBuyer; @@ -97,8 +97,7 @@ export const asyncData = { dispatch, selectedAsset as ERC20Asset, selectedAssetUnitAmount, - shouldSetPending, - affiliateInfo, + { setPending: !options.updateSilently, dispatchErrors: !options.updateSilently, affiliateInfo }, ); } }, |