aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/zero_ex_instant_provider.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-20 01:54:59 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-20 01:54:59 +0800
commit2bfd03e64f20905b0526d65813f78eff3e924727 (patch)
tree78887ca52a5ff1a4e7872c3a2f08b870c55ef1a0 /packages/instant/src/components/zero_ex_instant_provider.tsx
parente23f90b82cc1346bea66e91858bc7fdc874542dd (diff)
downloaddexon-0x-contracts-2bfd03e64f20905b0526d65813f78eff3e924727.tar.gz
dexon-0x-contracts-2bfd03e64f20905b0526d65813f78eff3e924727.tar.zst
dexon-0x-contracts-2bfd03e64f20905b0526d65813f78eff3e924727.zip
Change disabled analytics name, add assertion, and always set
Diffstat (limited to 'packages/instant/src/components/zero_ex_instant_provider.tsx')
-rw-r--r--packages/instant/src/components/zero_ex_instant_provider.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx
index 52454148f..9435d8c7c 100644
--- a/packages/instant/src/components/zero_ex_instant_provider.tsx
+++ b/packages/instant/src/components/zero_ex_instant_provider.tsx
@@ -37,7 +37,7 @@ export interface ZeroExInstantProviderOptionalProps {
additionalAssetMetaDataMap: ObjectMap<AssetMetaData>;
networkId: Network;
affiliateInfo: AffiliateInfo;
- disableAnalyticsTracking: boolean;
+ shouldDisableAnalyticsTracking: boolean;
}
export class ZeroExInstantProvider extends React.Component<ZeroExInstantProviderProps> {
@@ -125,9 +125,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
this._flashErrorIfWrongNetwork();
// Analytics
- if (this.props.disableAnalyticsTracking) {
- disableAnalytics();
- }
+ disableAnalytics(this.props.shouldDisableAnalyticsTracking || false);
analytics.addEventProperties({
embeddedHost: window.location.host,
embeddedUrl: window.location.href,