mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
fix metametrics option tracking (#10071)
This commit is contained in:
parent
69df19f195
commit
3cabe7525f
@ -105,7 +105,10 @@ export default class MetaMetricsOptIn extends Component {
|
|||||||
await setParticipateInMetaMetrics(false)
|
await setParticipateInMetaMetrics(false)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (participateInMetaMetrics === true) {
|
if (
|
||||||
|
participateInMetaMetrics === null ||
|
||||||
|
participateInMetaMetrics === true
|
||||||
|
) {
|
||||||
await metricsEvent({
|
await metricsEvent({
|
||||||
eventOpts: {
|
eventOpts: {
|
||||||
category: 'Onboarding',
|
category: 'Onboarding',
|
||||||
@ -128,7 +131,10 @@ export default class MetaMetricsOptIn extends Component {
|
|||||||
)
|
)
|
||||||
try {
|
try {
|
||||||
const metrics = []
|
const metrics = []
|
||||||
if (participateInMetaMetrics === false) {
|
if (
|
||||||
|
participateInMetaMetrics === null ||
|
||||||
|
participateInMetaMetrics === false
|
||||||
|
) {
|
||||||
metrics.push(
|
metrics.push(
|
||||||
metricsEvent({
|
metricsEvent({
|
||||||
eventOpts: {
|
eventOpts: {
|
||||||
|
Loading…
Reference in New Issue
Block a user