Skip to content

Fix unbound metrics track function#10016

Merged
Gudahtt merged 1 commit intodevelopfrom
fix-unbound-metrics-track-function
Dec 8, 2020
Merged

Fix unbound metrics track function#10016
Gudahtt merged 1 commit intodevelopfrom
fix-unbound-metrics-track-function

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Dec 8, 2020

The new metrics controller has a trackEvent function that was being called unbound, so this references were undefined. It is now bound early in both places where it is passed in as a parameter.

The new metrics controller has a `trackEvent` function that was being
called unbound, so `this` references were undefined. It is now bound
early in both places where it is passed in as a parameter.
@Gudahtt Gudahtt requested a review from a team as a code owner December 8, 2020 14:43
@Gudahtt Gudahtt requested a review from rekmarks December 8, 2020 14:43
@sentry
Copy link
Copy Markdown

sentry bot commented Dec 8, 2020

Sentry issue: METAMASK-GNZP

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [8ea20f1]
Page Load Metrics (560 ± 23 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint45685363
domContentLoaded5027175584823
load5037185604723
domInteractive5027175584823

Copy link
Copy Markdown
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, should have tested to make sure these worked. Thanks for fixing up @Gudahtt

@Gudahtt Gudahtt merged commit f75c3c6 into develop Dec 8, 2020
@Gudahtt Gudahtt deleted the fix-unbound-metrics-track-function branch December 8, 2020 16:10
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants