aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-17 01:20:44 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-17 01:20:44 +0800
commit3add465edb779587e2b4bb136d8668b00b58a8fb (patch)
tree4e3051e59685e6cb4640375973b17eed18760b7a /packages/instant/src
parentdf71dba8edcba5ca5731bed969748bdcc73efe92 (diff)
downloaddexon-0x-contracts-3add465edb779587e2b4bb136d8668b00b58a8fb.tar.gz
dexon-0x-contracts-3add465edb779587e2b4bb136d8668b00b58a8fb.tar.zst
dexon-0x-contracts-3add465edb779587e2b4bb136d8668b00b58a8fb.zip
We may not know num available assets available when wallet ready, so not trackin there
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/redux/analytics_middleware.ts4
-rw-r--r--packages/instant/src/util/analytics.ts2
2 files changed, 2 insertions, 4 deletions
diff --git a/packages/instant/src/redux/analytics_middleware.ts b/packages/instant/src/redux/analytics_middleware.ts
index 81031eb29..fb6d7eff1 100644
--- a/packages/instant/src/redux/analytics_middleware.ts
+++ b/packages/instant/src/redux/analytics_middleware.ts
@@ -24,9 +24,7 @@ export const analyticsMiddleware: Middleware = store => next => middlewareAction
if (curAccount.state === AccountState.Ready && prevAccount.state !== AccountState.Ready) {
const ethAddress = curAccount.address;
analytics.addUserProperties({ ethAddress });
- analytics.walletReady({
- numAssetsAvailable: curState.availableAssets ? curState.availableAssets.length : 0,
- });
+ analytics.walletReady();
}
break;
case ActionTypes.UPDATE_ACCOUNT_ETH_BALANCE:
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index 92f717f7b..ab8a86f04 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -41,6 +41,6 @@ export const analytics = {
heapUtil.evaluateHeapCall(heap => heap.addEventProperties(properties));
},
walletOpened: trackingEventFnWithoutPayload(EventNames.WALLET_OPENED),
- walletReady: trackingEventFnWithPayload<{ numAssetsAvailable: number }>(EventNames.WALLET_READY),
+ walletReady: trackingEventFnWithoutPayload(EventNames.WALLET_READY),
widgetOpened: trackingEventFnWithoutPayload(EventNames.WIDGET_OPENED),
};