Skip to content
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

frontend: fix shown amount for unconfirmed ETH txs #3215

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

bznein
Copy link
Collaborator

@bznein bznein commented Mar 4, 2025

Fixes the shown amount by allowing formatJSONAmountAtTime to work with a nil timestamp

image

Before asking for reviews, here is a check list of the most common things you might need to consider:

  • updating the Changelog
  • writing unit tests
  • checking if your changes affect other coins or tokens in unintended ways
  • testing on multiple environments (Qt, Android, ...)
  • having an AI review your changes

@@ -54,7 +54,7 @@ export const ConversionAmount = ({

return (
<span className={styles.txConversionAmount}>
{conversion && amountToShow ? (
{(conversion || sendToSelf) && amountToShow ? (
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a sendToSelf, we do not need conversion as we show the coin amount, and not its conversion into a fiat value.

@bznein bznein requested a review from benma March 4, 2025 13:45
Copy link
Contributor

@benma benma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK, thanks!

@bznein bznein merged commit 5bd8659 into BitBoxSwiss:release-v4.47.0 Mar 5, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants