diff --git a/app/scripts/controllers/metametrics.js b/app/scripts/controllers/metametrics.js index 50f23fba1fa5..cc20d5a97118 100644 --- a/app/scripts/controllers/metametrics.js +++ b/app/scripts/controllers/metametrics.js @@ -113,7 +113,7 @@ export default class MetaMetricsController { const segmentApiCalls = initState?.segmentApiCalls || {}; this.store = new ObservableStore({ - participateInMetaMetrics: true, + participateInMetaMetrics: null, metaMetricsId: null, eventsBeforeMetricsOptIn: [], traits: {}, @@ -148,9 +148,11 @@ export default class MetaMetricsController { // Code below submits any pending segmentApiCalls to Segment if/when the controller is re-instantiated if (isManifestV3) { - Object.values(segmentApiCalls).forEach(({ eventType, payload, callback }) => { - this._submitSegmentAPICall(eventType, payload, callback); - }); + Object.values(segmentApiCalls).forEach( + ({ eventType, payload, callback }) => { + this._submitSegmentAPICall(eventType, payload, callback); + }, + ); } // Close out event fragments that were created but not progressed. An