-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix unwanted IncompleteAssetDisplayed
events
#27651
base: develop
Are you sure you want to change the base?
fix: Fix unwanted IncompleteAssetDisplayed
events
#27651
Conversation
54e3eb7
to
18f2aa7
Compare
Builds ready [6f1f48e]
Page Load Metrics (2083 ± 88 ms)
Bundle size diffs
|
ui/pages/confirmations/confirm-send-ether/__snapshots__/confirm-send-ether.test.js.snap
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/confirm-transaction-base/confirm-transaction-base.component.js
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Builds ready [389e6ef]
Page Load Metrics (2003 ± 132 ms)
Bundle size diffs
|
389e6ef
to
c57767c
Compare
@@ -67,6 +67,10 @@ export function useSimulationMetrics({ | |||
setLoadingComplete(); | |||
} | |||
|
|||
if(!simulationData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've other hooks below including a useEffect
so would this condition best be added to the shouldSkipMetrics
boolean that is checked inside the effect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the way we trigger SimulationIncompleteAssetDisplayed
is getting send regardless of that variable, it's not tied to transaction.
But now I noticed that useIncompleteAssetEvent
not even cares if metrics are enabled or not 😄
Description
This PR aims to stop
IncompleteAssetDisplayed
events appearing in the mix panel even the token is known by the API.For more information please see the mixpanel link https://mixpanel.com/project/2212883/view/2760759/app/events#zy8pCckfmZvq
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3362
Manual testing steps
N/A
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist