You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
521 B
14 lines
521 B
import { getBackgroundMetaMetricState } from '../../../ui/app/selectors'
|
|
import { sendMetaMetricsEvent } from '../../../ui/app/helpers/utils/metametrics.util'
|
|
|
|
export default function backgroundMetaMetricsEvent (metaMaskState, eventData) {
|
|
const stateEventData = getBackgroundMetaMetricState({ metamask: metaMaskState })
|
|
if (stateEventData.participateInMetaMetrics) {
|
|
sendMetaMetricsEvent({
|
|
...stateEventData,
|
|
...eventData,
|
|
category: 'Background',
|
|
currentPath: '/background',
|
|
})
|
|
}
|
|
}
|
|
|