[Bug]: Activity list is showing a swap as a "send" for a brief moment before adjusting
Describe the bug
When executing a swap, the activity list populates with "send" for a brief moment
Version: Last Commit: 9a7aa3c metamask bot build: https://github.com/MetaMask/metamask-extension/pull/32383#issuecomment-2866455715
Expected behavior
I expect it to populate with Swap.
Screenshots/Recordings
https://github.com/user-attachments/assets/9c9061fd-5131-458e-99c2-90bac6f3f590
Steps to reproduce
- Open MM
- Execute swap
- Notice activity list
Error messages or log output
Detection stage
In production (default)
Version
12.18
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
N/A
Severity
Visual bug
Adding the Solana team here because the Swap activity item
Adding the Solana team here because the Swap activity item
@micaelae I believe this is due to the processing we do on the bridge hooks before we show a transaction.
Lets confirm together in code 🙏
Adding the Solana team here because the Swap activity item
@micaelae I think this is because of the useSolanaBridgeTransactionMapping hook which flags the transaction type as 'send' before it gets replaced by the actual event in the activity.
I think you're right. Sorry for the false alarm @aganglada ! Will add this to our backlog
Fix implemented here