fix: rm network confirmation modal on trending#24888
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. |
| navigation, | ||
| networkConfigurations, | ||
| addPopularNetwork, | ||
| ]); |
There was a problem hiding this comment.
Missing guard against rapid taps during async operation
Medium Severity
The handlePress callback is now async but lacks protection against rapid consecutive taps. Previously, the modal provided implicit protection — once shown, subsequent taps couldn't trigger navigation. Now, if a user taps rapidly before the first addPopularNetwork completes, multiple async handlers can run in parallel since networkConfigurations[caipChainId] won't reflect the pending addition. This could trigger duplicate addPopularNetwork calls and multiple navigation.navigate calls, potentially causing unexpected UX behavior.
There was a problem hiding this comment.
Is this valid? Should we wrap in a debounce?
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes affect two main areas:
The E2E tests in The risk is medium because:
No other tags are needed as:
|
|



Description
PR to remove network confirmation modal on trending flow
Changelog
CHANGELOG entry: Remove the network confirmation modal on trending flow
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
Screen.Recording.2026-01-19.at.15.43.00.mov
After
Screen.Recording.2026-01-19.at.15.40.24.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Removes confirmation UI from trending flow and streamlines navigation; minor Tokens screen lifecycle tweak.
NetworkModalflow with direct add viauseAddPopularNetworkwhen a network isn't added; then navigate toAsset. On add failure, do not navigate. Simplifies component state and markup. Tests updated to mockuseAddPopularNetwork, await async flows, and cover failure cases.useFocusEffectto force a re-render on screen focus to pick up network changes; refactor conditional rendering into memoizedtokenContentfor clearer loading/empty/list states.Written by Cursor Bugbot for commit a210d1c. This will update automatically on new commits. Configure here.