[CP Staging] Pass withDecimals param#52348
Conversation
|
@rayane-djouah Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
puneetlath
left a comment
There was a problem hiding this comment.
Thank you for catching this.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
rayane-d
left a comment
There was a problem hiding this comment.
@luacmartins - BUG: we're displaying "mi" unit instead of the translated "mile" (and "milla" in Spanish)
App/src/libs/DistanceRequestUtils.ts
Line 161 in b2d6a0e
|
Hmm, @rayane-djouah do you think this PR caused that? I'm not seeing how it could've. |
|
That seems to also be a bug of the original PR. But one that I don't think needs to be a deploy blocker. |
@puneetlath - Yes, this PR caused that issue. We set App/src/libs/DistanceRequestUtils.ts Line 157 in b2d6a0e But this also causes the display unit to change here to use App/src/libs/DistanceRequestUtils.ts Line 161 in b2d6a0e |
|
thanks for taking care of this guys, i was asleep. are we pushing this fix or should we revert ? |
|
I think let's just revert the original PR since it has multiple bugs. Do you agree @luacmartins? |
|
Alright, whatever way we go, Here's the straight revert just in case: #52406 I am available for sometime now, (Honestly i prefer a straight revert and let the contributor fix the regressions) |
|
Let's go with the revert. I'll close this PR. |



Explanation of Change
We call
getRateDisplayValuein a few places without thewithDecimalsparam which makes the formatting of the decimals incorrect. This PR passes the param so we correctly format the numbers.Fixed Issues
$ #52342
Tests
Offline tests
N/A
QA Steps
Same as test steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop