fix: order of distance rates is not preserved after reset#68980
fix: order of distance rates is not preserved after reset#68980marcochavezf merged 2 commits intoExpensify:mainfrom
Conversation
|
@parasharrajat 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] |
Reviewer Checklist
Screenshots24.08.2025_15.46.42_REC.mp424.08.2025_16.02.54_REC.mp4🎀 👀 🎀 C+ reviewed |
| return rateText.includes(normalizedSearchInput); | ||
| }, []); | ||
| const sortRates = useCallback((rates: RateForList[]) => rates, []); | ||
| const sortRates = useCallback((rates: RateForList[]) => rates.sort((a, b) => localeCompare(a.text ?? '', b.text ?? '')), [localeCompare]); |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| return rateText.includes(normalizedSearchInput); | ||
| }, []); | ||
| const sortRates = useCallback((rates: RateForList[]) => rates, []); | ||
| const sortRates = useCallback((rates: RateForList[]) => rates.sort((a, b) => localeCompare(a.text ?? '', b.text ?? '')), []); |
There was a problem hiding this comment.
@nkdengineer We have deprecated the localeCompare method from @libs/LocaleCompare. Can you please use localeCompare from useLocalize hook, and make the amends in the follow-up PR?
There was a problem hiding this comment.
Sure, good call. @nkdengineer feel free to create a follow-up any time.
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 9.1.99-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.99-11 🚀
|
Explanation of Change
Fixed Issues
$ #68700
PROPOSAL: #68700 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
a.mov
Android: mWeb Chrome
am.mov
iOS: Native
i.mov
iOS: mWeb Safari
im.mov
MacOS: Chrome / Safari
w.mov
MacOS: Desktop
d.mov