Skip to content

Commit

Permalink
Merge branch 'develop' into cryptodev2s/bump-user-operatin-controller…
Browse files Browse the repository at this point in the history
…-19.0.0
  • Loading branch information
cryptodev-2s authored Nov 29, 2024
2 parents ecf6ac8 + 099a07b commit d7024b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/pages/settings/security-tab/security-tab.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,15 @@ export default class SecurityTab extends PureComponent {
<ToggleButton
value={dataCollectionForMarketing}
onToggle={(value) => {
setDataCollectionForMarketing(!value);
const newMarketingConsent = Boolean(!value);
setDataCollectionForMarketing(newMarketingConsent);
if (participateInMetaMetrics) {
this.context.trackEvent({
category: MetaMetricsEventCategory.Settings,
event: MetaMetricsEventName.AnalyticsPreferenceSelected,
properties: {
is_metrics_opted_in: true,
has_marketing_consent: false,
has_marketing_consent: Boolean(newMarketingConsent),
location: 'Settings',
},
});
Expand Down

0 comments on commit d7024b6

Please sign in to comment.