Skip to content

fix(display-currency): correct HUF symbol placement in amount displays#3750

Open
peszpesz wants to merge 2 commits intoblinkbitcoin:mainfrom
peszpesz:fix/huf-symbol-position
Open

fix(display-currency): correct HUF symbol placement in amount displays#3750
peszpesz wants to merge 2 commits intoblinkbitcoin:mainfrom
peszpesz:fix/huf-symbol-position

Conversation

@peszpesz
Copy link
Copy Markdown

@peszpesz peszpesz commented Apr 5, 2026

Problem

Hungarian Forint (HUF) amounts are displayed with the symbol as a prefix
throughout the app (e.g. "Ft276"), which is incorrect — HUF conventionally
places the symbol after the amount ("276 Ft").

Additionally, the amount input screen shows "Ft" before the number in the
input field, while the HUF currency pill already identifies the currency.

Changes

app/hooks/use-display-currency.ts
Added a currencyId parameter to formatCurrencyHelper. For HUF, the
symbol is placed after the amount with a separating space ("276 Ft").
This fixes all screens that use formatMoneyAmount or formatCurrency:
home screen balance, send screen, conversion screen, transaction list.

app/components/amount-input-screen/amount-input-screen-ui.tsx
The currency symbol is hidden for HUF in the amount input field.
The HUF currency pill already identifies the currency, so showing
"Ft" as a prefix in the input is redundant and incorrect.

Screens affected

  • Home screen balance
  • Send bitcoin — sender account balance and dropdown
  • Conversion flow
  • Transaction history list
  • Amount input screen (Lightning invoice, send)

peszpesz and others added 2 commits April 5, 2026 14:47
Hungarian Forint conventionally places the symbol after the amount.
formatCurrencyHelper always put the symbol before the number, causing
the home screen balance to render "Ft0" instead of "0 Ft". Add a
currencyId parameter and handle HUF as a special case to render
amount-then-symbol with a separating space.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
HUF uses a suffix symbol ("Ft") which does not belong before the number
in an input field. The HUF currency pill already identifies the currency,
so the symbol is suppressed to avoid showing "Ft 0" in the input.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant