diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-27 07:53:39 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-27 07:53:39 +0800 |
commit | 0192127e5d20222698673d5c63c1025a10d5011f (patch) | |
tree | 0160291d27a96675a0a72869415944a608306e00 /packages/instant | |
parent | 7610130f7353ea6134fae441a8fe23e0fd0ddb2f (diff) | |
download | dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.tar.gz dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.tar.zst dexon-sol-tools-0192127e5d20222698673d5c63c1025a10d5011f.zip |
Set selected asset to none
Diffstat (limited to 'packages/instant')
-rw-r--r-- | packages/instant/src/util/analytics.ts | 8 |
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), |