fix: mixpanel event missing property cp-7.69.0#27187
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Market Insights is part of the token details experience and tied to the Tokens/Trending sections within the wallet. According to the tag definitions, changes to Tokens views embedded in Trending fall under SmokeWalletPlatform. Therefore, running SmokeWalletPlatform ensures validation of token details screens, Trending integration, and related wallet UI flows. There are no changes to controllers, Engine, network logic, confirmations, swaps, perps, predictions, snaps, or identity/sync features. The modification is UI-state-only and localized to a hook, so no other E2E tags are required. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|



Description
Bug fix
Fixed market_insights_displayed always reporting false in the
TOKEN_DETAILS_OPENEDevent by initializingisLoadingto true inuseMarketInsightswhen a fetch will occur, preventing a race condition where the tracking callback fired before loading started and deduplication blocked the correct valueChangelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TSA-243
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk state-initialization change in a React hook; main risk is a minor behavior shift where
isLoadingmay starttruewhen enabled and an asset id is present.Overview
Fixes a race where market insights tracking could run before loading begins by initializing
useMarketInsights’sisLoadingstate totruewhenever the hook is enabled and acaip19Idis provided, ensuring first-render consumers don’t see a transient “not loading” state before the initial fetch.Written by Cursor Bugbot for commit 2033d2c. This will update automatically on new commits. Configure here.