feat: Pass the asset to send page using routing#17415
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. |
|
There was a problem hiding this comment.
Bug: Send Screen Asset Parameter Mismatch
In CollectibleView, when navigating to the Send screen (for the new redesign flow), the collectible params object is passed directly as navigation parameters. This is incorrect, as the Send component expects the asset data to be nested under an asset key (e.g., { asset: params }). This inconsistent parameter structure differs from other components that correctly wrap their asset data.
app/components/Views/CollectibleView/index.js#L86-L94
metamask-mobile/app/components/Views/CollectibleView/index.js
Lines 86 to 94 in deebb38
Bug: Send Flow Fails to Pass Selected Asset
In the redesigned send flow initiated from WalletActions, the selected asset is not dispatched to the global state or passed via navigation parameters. A return statement prevents the asset dispatch logic (present in the legacy flow) from executing. Consequently, the send component lacks the selected asset, unlike other navigation paths (e.g., AssetOverview) or the legacy flow, which correctly provide this data.
app/components/Views/WalletActions/WalletActions.tsx#L299-L307
metamask-mobile/app/components/Views/WalletActions/WalletActions.tsx
Lines 299 to 307 in deebb38
Was this report helpful? Give feedback by reacting with 👍 or 👎
|


Description
Passing the asset information to the send page if available.
Changelog
CHANGELOG entry:
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/5407
Manual testing steps
NA
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist