New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added USD asset price next to currency rows (send) in tx sim #5374
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smol things
last q, are the $ amounts formatted properly? e.g. |
@christianbaroni it is now, good catch |
const showUSD = (eventType === 'send' || eventType === 'receive') && price; | ||
const formattedPrice = `$${price?.toLocaleString?.('en-US', { | ||
maximumFractionDigits: 2, | ||
})}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker on this PR at all, but wonder if it's worth opening up a backlog to explore instances where we display currency and match it to the user's desired currency that they chose in settings.
Seems like in a lot of places we assume USD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i think if we're not doing USD we'd keep currency pref on backend and strip all locale conversions on client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets get it
Fixes APP-1122
What changed (plus any additional context for devs)
now we have a USD value for what you're swapping!
Screen recordings / screenshots
What to test
that send amounts show up