aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-27 07:53:39 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-27 07:53:39 +0800
commit0192127e5d20222698673d5c63c1025a10d5011f (patch)
tree0160291d27a96675a0a72869415944a608306e00
parent7610130f7353ea6134fae441a8fe23e0fd0ddb2f (diff)
downloaddexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.tar
dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.tar.gz
dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.tar.bz2
dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.tar.lz
dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.tar.xz
dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.tar.zst
dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.zip
Set selected asset to none
-rw-r--r--packages/instant/src/util/analytics.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index 331cd86e8..aa0f37194 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -97,13 +97,9 @@ export const analytics = {
orderSource: orderSourceName,
affiliateAddress,
affiliateFeePercent,
+ selectedAssetName: selectedAsset ? selectedAsset.metaData.name : 'none',
+ selectedAssetData: selectedAsset ? selectedAsset.assetData : 'none',
};
-
- if (selectedAsset) {
- eventOptions.selectedAssetName = selectedAsset.metaData.name;
- eventOptions.selectedAssetData = selectedAsset.assetData;
- }
-
return eventOptions;
},
trackInstantOpened: trackingEventFnWithoutPayload(EventNames.INSTANT_OPENED),