Skip to content

Commit

Permalink
fix(swap-tracking): just track order direction
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Dec 28, 2020
1 parent 70c4c42 commit 70db4fd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const WhitelistActionTypesEnum = {
'@EVENT.BORROW.SET_STEP': '@EVENT.BORROW.SET_STEP',
'@EVENT.SET_SB_STEP': '@EVENT.SET_SB_STEP',
'@EVENT.SET_SWAP_STEP': '@EVENT.SET_SWAP_STEP',
'@EVENT.CREATE_SWAP_ORDER': '@EVENT.CREATE_SWAP_ORDER',
CLOSE_MODAL: 'CLOSE_MODAL',
SHOW_MODAL: 'SHOW_MODAL'
}
Expand Down Expand Up @@ -126,7 +127,7 @@ const sanitizeEvent = (
nextCategory,
formatEvent({
step: swapAction.step,
orderType: swapAction.options.order.kind,
orderType: swapAction.options.order.kind.direction,
orderPair: swapAction.options.order.pair
})
]
Expand Down Expand Up @@ -159,7 +160,8 @@ const matomoMiddleware = () => () => next => action => {
!equals(nextEvent, lastEvent) &&
!includes(nextAction, EVENT_ACTION_BLACKLIST)
) {
// console.info('EVENT', nextEvent) // uncomment to assist with debugging
// console.info('EVENT', nextEvent)
// uncomment to assist with debugging
const frame = document.getElementById('matomo-iframe')
frame &&
// @ts-ignore
Expand Down

0 comments on commit 70db4fd

Please sign in to comment.