refactor(deposit): copy provider order id#17026
Conversation
There was a problem hiding this comment.
Bug: Unsafe Type Casting Causes UI/Functionality Mismatch
The code unsafely casts order.data to DepositOrder and directly accesses providerOrderId, risking runtime errors if order.data is not the expected type or is undefined. This also creates inconsistent behavior: while the UI displays a fallback internal order ID when providerOrderId is missing, the copy functionality only copies providerOrderId and silently fails, leading to a confusing user experience.
app/components/UI/Ramp/Deposit/components/DepositOrderContent/DepositOrderContent.tsx#L79-L97
Was this report helpful? Give feedback by reacting with 👍 or 👎
|
|



Description
This PR changes the copy button on the order details to copy the provider order id and not the internal order id.
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist