blink-mobile icon indicating copy to clipboard operation
blink-mobile copied to clipboard

Incorrect 100x amount in payment notification when currency is HUF

Open openoms opened this issue 9 months ago • 3 comments

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 image The correct amount history is Notification showing +3654.06Ft image

Smartphone (please complete the following information):

  • Device: Pixel5
  • OS: GraphenOS
  • Version 2.2.263

Additional context Add any other context about the problem here.

openoms avatar Apr 29 '24 09:04 openoms

Hey @openoms, I want to work on this issue. I think it's a good one to explore in this repository.

amitamrutiya avatar Apr 29 '24 11:04 amitamrutiya

@openoms is there any trace for this ?

thevaibhav-dixit avatar Apr 29 '24 12:04 thevaibhav-dixit

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.

openoms avatar Apr 30 '24 13:04 openoms