1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Using correct metricsEvent arg (#13684)

This commit is contained in:
ryanml 2022-02-21 10:39:01 -07:00 committed by GitHub
parent 3d5da527f9
commit 5b96e3370e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,9 +33,9 @@ export default class TypedMessageManager extends EventEmitter {
* *
* @param options * @param options
* @param options.getCurrentChainId * @param options.getCurrentChainId
* @param options.metricEvents * @param options.metricsEvent
*/ */
constructor({ getCurrentChainId, metricEvents }) { constructor({ getCurrentChainId, metricsEvent }) {
super(); super();
this._getCurrentChainId = getCurrentChainId; this._getCurrentChainId = getCurrentChainId;
this.memStore = new ObservableStore({ this.memStore = new ObservableStore({
@ -43,7 +43,7 @@ export default class TypedMessageManager extends EventEmitter {
unapprovedTypedMessagesCount: 0, unapprovedTypedMessagesCount: 0,
}); });
this.messages = []; this.messages = [];
this.metricEvents = metricEvents; this.metricsEvent = metricsEvent;
} }
/** /**