blink-mobile
blink-mobile copied to clipboard
Incorrect 100x amount in payment notification when currency is HUF
Describe the bug The amount is shown as 100x in the notification when using HUF as the display currency.
To Reproduce Steps to reproduce the behavior: The padding in the notification should be the same as in the history with two digits accuracy.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Notification showing +364 506Ft
The correct amount history is
Notification showing
+3654.06Ft
Smartphone (please complete the following information):
- Device: Pixel5
- OS: GraphenOS
- Version 2.2.263
Additional context Add any other context about the problem here.
Hey @openoms, I want to work on this issue. I think it's a good one to explore in this repository.
@openoms is there any trace for this ?
shared in DM with @thevaibhav-dixit .
Turns out HUF is special as it does not have a minor exponent https://leejo.github.io/2015/08/02/a_lot_of_huf/ :
HUF : {
exponent: 0,
iso_alpha_code: "HUF",
iso_numeric_code: "348",
locale: EnBy,
minor_units: 5,
name: "Hungarian Forint",
symbol: "Ft",
symbol_first: false,
},
It is causing the problem in the notifications, but not in the transaction history.