File tree 3 files changed +3
-5
lines changed
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ export interface ITrackingEvent {
110
110
* legacy MetaMetrics event interface
111
111
*/
112
112
export interface IMetaMetricsEvent {
113
- name ?: string ;
114
113
category : string ;
115
114
properties ?: {
116
115
name ?: string ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class TrackingEvent implements ITrackingEvent {
15
15
saveDataRecording : boolean ;
16
16
17
17
constructor ( event : IMetaMetricsEvent ) {
18
- this . name = event . category ?? event . name ;
18
+ this . name = event . category ;
19
19
this . properties = event . properties || { } ;
20
20
this . sensitiveProperties = { } ;
21
21
this . saveDataRecording = true ;
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import { store } from '../../../../store';
22
22
import PREINSTALLED_SNAPS from '../../../../lib/snaps/preinstalled-snaps' ;
23
23
import { MetaMetrics } from '../../../Analytics' ;
24
24
import { MetricsEventBuilder } from '../../../Analytics/MetricsEventBuilder' ;
25
- import { ITrackingEvent } from '../../../Analytics/MetaMetrics.types' ;
26
25
27
26
/**
28
27
* Initialize the Snap controller.
@@ -126,9 +125,9 @@ export const snapControllerInit: ControllerInitFunction<
126
125
} ) =>
127
126
MetaMetrics . getInstance ( ) . trackEvent (
128
127
MetricsEventBuilder . createEventBuilder ( {
129
- name : params . event ,
128
+ category : params . event ,
130
129
properties : params . properties ,
131
- } as ITrackingEvent ) . build ( ) ,
130
+ } ) . build ( ) ,
132
131
) ,
133
132
} ) ;
134
133
You can’t perform that action at this time.
0 commit comments