Skip to content

Commit

Permalink
[#175897659] track the chosen abi
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziofff committed Nov 25, 2020
1 parent f15930d commit 1fd6efa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/features/bonus/bpd/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ const trackAction = (mp: NonNullable<typeof mixpanel>) => (
case getType(walletAddBancomatCancel):
case getType(walletAddBancomatBack):
case getType(loadAbi.request):
case getType(searchUserPans.request):
case getType(addBancomatToWallet.request):
case getType(addBancomatToWallet.success):
return mp.track(action.type);
Expand All @@ -120,6 +119,8 @@ const trackAction = (mp: NonNullable<typeof mixpanel>) => (
return mp.track(action.type, {
count: action.payload.data?.length
});
case getType(searchUserPans.request):
return mp.track(action.type, { abi: action.payload ?? "all" });
case getType(searchUserPans.success):
const messages = action.payload.messages.reduce(
(acc, val) => {
Expand Down

0 comments on commit 1fd6efa

Please sign in to comment.