diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-27 05:20:16 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-27 05:20:16 +0800 |
commit | 2fec7613c408a046c130f4c5817696ab3b5e3928 (patch) | |
tree | d252688b8fa67602f017cf9d7fc6d29e7f410711 /packages/instant/src/redux | |
parent | a5359df002d121c1b7c1f29e8a2bd8b351090ee3 (diff) | |
download | dexon-sol-tools-2fec7613c408a046c130f4c5817696ab3b5e3928.tar dexon-sol-tools-2fec7613c408a046c130f4c5817696ab3b5e3928.tar.gz dexon-sol-tools-2fec7613c408a046c130f4c5817696ab3b5e3928.tar.bz2 dexon-sol-tools-2fec7613c408a046c130f4c5817696ab3b5e3928.tar.lz dexon-sol-tools-2fec7613c408a046c130f4c5817696ab3b5e3928.tar.xz dexon-sol-tools-2fec7613c408a046c130f4c5817696ab3b5e3928.tar.zst dexon-sol-tools-2fec7613c408a046c130f4c5817696ab3b5e3928.zip |
Token Selector open, closed, chose
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r-- | packages/instant/src/redux/analytics_middleware.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/instant/src/redux/analytics_middleware.ts b/packages/instant/src/redux/analytics_middleware.ts index 299c2560e..1a8aefb38 100644 --- a/packages/instant/src/redux/analytics_middleware.ts +++ b/packages/instant/src/redux/analytics_middleware.ts @@ -53,6 +53,15 @@ export const analyticsMiddleware: Middleware = store => next => middlewareAction ).toString(); analytics.addUserProperties({ ethBalanceInUnitAmount }); } + break; + case ActionTypes.UPDATE_SELECTED_ASSET: + if (curState.selectedAsset) { + analytics.trackTokenSelectorChose({ + assetName: curState.selectedAsset.metaData.name, + assetData: curState.selectedAsset.assetData, + }); + } + break; } return nextAction; |