metamask-extension
metamask-extension copied to clipboard
[Bug]: Multichain - Asset picker doesn't select asset upon open when asset is NFT
Describe the bug
The Asset Picker modal should always display the selected asset (token or NFT) upon open. The asset should also be in selected state. Presently, if the selected asset is an NFT, opening the asset picker displays the "Tokens" tab and the native asset as selected.
Expected behavior
If the user has selected an NFT to send, the asset picker should display the NFTs tab and scroll to the selected NFT.
Screenshots/Recordings
https://github.com/MetaMask/metamask-extension/assets/46655/50ba7221-a467-4e94-b882-dd81eef1cd01
Steps to reproduce
- Open the new send flow
- Click the asset dropdown to display the Asset Picker modal
- Click the NFTs tab and choose an NFT
- Open the Asset Picker modal again
- See the "Tokens" tab selected and native token selected
Error messages or log output
No response
Version
develop
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
Severity
No response