Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuri committed Nov 4, 2022
1 parent 51abcab commit 590758e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/scripts/controllers/metametrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class MetaMetricsController {
const segmentApiCalls = initState?.segmentApiCalls || {};

this.store = new ObservableStore({
participateInMetaMetrics: true,
participateInMetaMetrics: null,
metaMetricsId: null,
eventsBeforeMetricsOptIn: [],
traits: {},
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 590758e

Please sign in to comment.