aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/async_data.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-11-16 07:29:22 +0800
committerGitHub <noreply@github.com>2018-11-16 07:29:22 +0800
commit8c96720080b41011d85465c2b5d9a0a3719da604 (patch)
tree88ee3a9ce98fddccc503f2f3baa7c191ccaae2bd /packages/instant/src/redux/async_data.ts
parent312dfb957267d5c96fa7d922d2f21112019fb6fa (diff)
parent33a156d9b5278c0e85a1fa0fe158440a41bcc60e (diff)
downloaddexon-0x-contracts-8c96720080b41011d85465c2b5d9a0a3719da604.tar.gz
dexon-0x-contracts-8c96720080b41011d85465c2b5d9a0a3719da604.tar.zst
dexon-0x-contracts-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.ts5
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 },
);
}
},