diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 01:20:44 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 01:20:44 +0800 |
commit | 3add465edb779587e2b4bb136d8668b00b58a8fb (patch) | |
tree | 4e3051e59685e6cb4640375973b17eed18760b7a | |
parent | df71dba8edcba5ca5731bed969748bdcc73efe92 (diff) | |
download | dexon-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
-rw-r--r-- | packages/instant/src/redux/analytics_middleware.ts | 4 | ||||
-rw-r--r-- | packages/instant/src/util/analytics.ts | 2 |
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), }; |