Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix "Undefined 0" fee tx UI #5808

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

Open
Jon-edge wants to merge 1 commit into develop
base: develop
Choose a base branch
Loading
from jon/fix/trx-fee
Open

Fix "Undefined 0" fee tx UI #5808

Jon-edge wants to merge 1 commit into develop from jon/fix/trx-fee

Conversation

@Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Oct 24, 2025
edited
Loading

  • Ensure we always have something to display for the crypto and fiat symbols when displaying fees.
  • If no crypto symbol is available, use the currency name instead.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Note

Fixes Send fee text to show proper crypto/fiat symbols with currency-name fallback when symbols are missing or fees are zero; strengthens utility fee formatting and adds typing.

  • Send Scene (src/components/scenes/SendScene2.tsx):
    • Fix fee text construction to use crypto symbol when available, otherwise use currency name; preserves fiat amount display.
  • Utilities (src/util/utils.ts):
    • Harden convertTransactionFeeToDisplayFee: add currencyName, provide fiat symbol/name fallback, handle empty fee amounts, and return defaults for zero-fee cases.
    • Add/clarify TypeScript return types across helpers; minor safety tweaks (async error indexing, pending check, OS version normalization).

Written by Cursor Bugbot for commit 4941864. This will update automatically on new commits. Configure here.


chatgpt-codex-connector[bot] reacted with thumbs up emoji
- Ensure we always have something to display for the crypto and fiat symbols when displaying fees.
- If no crypto symbol is available, use the currency name instead.
? `${transactionFee.cryptoSymbol} ${transactionFee.cryptoAmount}`
: `${transactionFee.cryptoAmount} ${
transactionFee.currencyName ?? ''
}`
Copy link

@cursor cursor bot Oct 24, 2025

Choose a reason for hiding this comment

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

Bug: Fee Display Fails with Empty Crypto Symbol

The fee display logic's condition transactionFee.cryptoSymbol != null doesn't account for cryptoSymbol being an empty string. When no symbol is available, a utility sets cryptoSymbol to '', preventing the currencyName fallback. This leads to an incorrect fee display, often with a leading space, instead of the intended currency name.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /