-
Notifications
You must be signed in to change notification settings - Fork 137
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
Incorrect 100x amount in payment notification when currency is HUF #3234
Comments
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/ :
It is causing the problem in the notifications, but not in the transaction history. |
The issue is likely related to the difference between the libraries used (or how they are handled) in the backend (https://github.com/galoymoney/blink) vs this repo for the mobile app. Excerpt from an example notification trace from the backend :
|
The final text of the txNotification is presented based on this metadata:
I asume the text prestended in the push notifcation is renderred on backend side. While the text presented in tx history and other places is renderred on UI side.
|
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):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: