-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2022-09-15] [$500] Currency symbol not being properly shown for all currencies - reported by @Puneet-here #10287
Comments
Triggered auto assignment to @puneetlath ( |
@puneetlath Whoops! This issue is 2 days overdue. Let's get this updated quick! |
The bug here isn't that these options are showing up when the letter So the search feature is properly searching the two fields. But we are not correctly showing them. |
Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new. |
External Upwork job: https://www.upwork.com/jobs/~0176428feebe6459dc |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Current assignee @puneetlath is eligible for the Exported assigner, not assigning anyone new. |
Hi, I had reported this here. |
We can resolve this by maintaining a JSON collection with county names and country currency symbols and flags. On the selecting a country, we can hold the country data and show symbols where ever needed |
@tyagi6165 that information is already being stored. That is why we are able to search on it. |
@Harshdeepjoshi we need to fix the symbol. The search is working properly. But the display should be this (image taken from old expensify): |
ProposalTo show the currency symbols beside the currency code. App/src/pages/iou/IOUCurrencySelection.js Line 81 in 90b5292
Changes to text: `${currencyCode} - ${currencyInfo.symbol}`, This is the output I got here Also if we call App/src/libs/CurrencySymbolUtils.js Line 15 in 52c7907
is returning Currency Code and not the Symbol. |
Then we should fix the method which is not working as expected |
Agreed. @zereraz feel free to re-propose a solution that fixes the |
ProposalApp/src/libs/CurrencySymbolUtils.js Line 10 in 3faeca0
This function uses Intl.NumberFormat: App/src/libs/NumberFormatUtils.js Line 6 in 3faeca0
Currency symbol from Intl.NumberFormat cannot be exactly same as what we're trying to get and it also depends on preferred locale. Currency symbol of AED we're trying to get is Dhs , neither AED nor د.إ. Therefore, we cannot use default javascript Intl.NumberFormat to get correct currency symbol. Solution If we don't want to connect Onyx, we can send |
First of all, I'm doubling the job price to $500 since the job has been open for over a week. Secondly, thanks everyone for all the proposals/info on this issue. This has been quite enlightening! I think we should go with @zereraz new proposal of using That feels like the most accurate since it takes into account their preferred locale and searches for and displays the right symbol based on the preferred local. |
📣 @zereraz You have been assigned to this job by @puneetlath! |
I've applied on Upwork. I can provide the PR within 2 days. |
Not overdue. PR is on staging. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.97-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-09-15. 🎊 |
Not overdue, PR is on production. |
@zereraz paid. @Santhosh-Sellavel @Puneet-here sent you hiring offers. |
@puneetlath @Santhosh-Sellavel Thanks ! |
I was just searching if there are any existing issue before posting one about the currency and I found this which is already fixed but I couldn't understand what we really did here. The issue was about currency symbol as mentioned here, which is still there. |
@thesahindia ah, looks like we need to update that component also. Everyone has been paid! |
Not sure what you mean by that. Are you saying that we will need to update general settings? We want to show the symbols right? |
Yes, I'm saying we should update General Settings. In the IOU currency selector we are using Whereas in the General Settings we are using We should make those consistent. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The list of currencies is reduced to those that contain the entered letter, for example U.
Actual Result:
The list of currencies contains not only codes with letter U, but also codes without U.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.88-1
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Bug5676929_currency-list-U.mp4
Expensify/Expensify Issue URL:
Issue reported by:
@Puneet-here
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: