Repository navigation
fix: Split amount is not recalculated when entering 0 as input - #49381
Conversation
|
@rushatgabhane 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] |
|
@nkdengineer can you please fix the eslint error by migrating to useOnyx |
|
@rushatgabhane i fixed, please move forward |
| const [reportNameValuePairs] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID ?? -1}`); | ||
|
|
||
| const [transactionBackup] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION_BACKUP}${transactionID}`); | ||
| const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${report ? report?.policyID : '-1'}`); |
There was a problem hiding this comment.
If policyID is undefined, we should fallback to -1
| const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${report ? report?.policyID : '-1'}`); | |
| const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID ?? '-1'}`); |
There was a problem hiding this comment.
I think we can use usePolicy that covers this case.
There was a problem hiding this comment.
yeah let's do that. let's use usePolicy
There was a problem hiding this comment.
@rushatgabhane i updated, please check again
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-09-16.at.00.30.20.moviOS: mWeb SafariScreen.Recording.2024-09-16.at.00.24.47.movMacOS: Chrome / SafariScreen.Recording.2024-09-16.at.00.08.26.movMacOS: DesktopScreen.Recording.2024-09-16.at.00.20.26.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 9.0.43-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 9.0.43-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.43-6 🚀
|

Details
Fixed Issues
$ #48302
PROPOSAL: #48302 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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-resize.mp4
Android: mWeb Chrome
android-mweb-resize.mp4
iOS: Native
ios-resize.mp4
iOS: mWeb Safari
ios-mweb-resize.mp4
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop
desktop-resize.mp4