-
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
[$500] Distance - Distance rate shows $TBD instead of TBD in offline mode #30376
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01ffaa57ea238f4625 |
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance rate shows $TBD instead of TBD in offline mode What is the root cause of that problem?The distance rate is determined here where the currency symbol is attached to the ratePerUnit. However, the currency symbol is applied even when rate is not available. This is the root cause What changes do you think we should make in order to solve the problem?To solve the problem, we need to set the
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance rate shows $TBD instead of TBD in offline mode What is the root cause of that problem?To display the string present in the menu item, we use the App/src/libs/DistanceRequestUtils.js Line 86 in 7393ec5
We always show the currency symbol, regardless of the rate, thus causing this bug. What changes do you think we should make in order to solve the problem?We need to consider if the rate is present an use the symbol only then. We can add a simple conditional to
What alternative solutions did you explore? (Optional) |
Would just like to mention, isn't adding code diffs to the proposal against the proposal guidelines? I got delayed by a few seconds just because I was trying to word it out properly and adding the references instead of just pasting the code. Please do consider this when judging the proposals! Thanks! |
This is a simple and straightforward issue @rojiphil's proposal looks good to me! C+ Reviewed |
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
These are bound to happen on simple issues, better luck next time.
Yeah, large diffs without explaining the root cause. But I'm good with this as it's a relatively simpler one! cc: @luacmartins |
This comment was marked as outdated.
This comment was marked as outdated.
@Santhosh-Sellavel |
According to QA this is still happening on iOS, so let's make sure it also gets fixed there. |
I am not able to reproduce the problem on the latest main (v1.3.97-1) with both iOS native and iOS mweb. Also, attaching the test videos for reference below. Maybe I am missing something simple here. Not sure whom to approach in QA for reproducing the problem. 30376-ios-native-2.mp430376-mweb-safari-2.mp4 |
@rojiphil I am not able to reproduce $TBD but I see the mileage rate in offline mode in the latest build. MNFM7884.1.MP4 |
Ok. Got it. I think the test description along with the precondition may help here. And sorry for the lack of clarity in the test steps. |
@rojiphil Thanks will validate and update you. |
@rojiphil It's a pass following the precondition and revised steps RPReplay_Final1699544846.MP4 |
@adelekennedy |
yes! Sorry about that it looks like this didn't update automatically Payouts due: Contributor: $500 @rojiphil (Upwork) |
@adelekennedy |
@adelekennedy I'm C+ here can you update payment summary please, thanks! |
@adelekennedy re-opening for payment summary. |
Apologies, I missed this payment summary. $500 payment approved for @Santhosh-Sellavel. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.91-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition:
Expected Result:
The distance rate shows TBD
Actual Result:
The distance rate shows $TBD instead of TBD
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6250523_1698251124492.20231025_125454.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: