Split - Missing split preview when expense is split in room#64725
Split - Missing split preview when expense is split in room#64725grgia merged 6 commits intoExpensify:mainfrom
Conversation
|
@c3024 Friendly bump. |
|
This #64658 still happens. This is not related to this PR like you mentioned but QA will raise it again if we merge it without deciding what should be done about it. |
|
Could you merge |
|
Please fix the conflicts. |
|
@c3024 resolved |
|
@c3024 Could you please help to check |
|
This line: App/src/pages/iou/request/step/IOURequestStepConfirmation.tsx Lines 92 to 95 in f660f73 is returning two draft transactions because every time we open the split details page, these lines: App/src/components/MoneyRequestConfirmationList.tsx Lines 794 to 797 in f660f73 create the draft transaction again for the distance split expense, resulting in two draft transactions being shown. We can avoid this by ensuring the logic above runs only when the split view fields are editable, by returning early in the relevant useEffect blocks with an additional check like: if (isReadOnly) {
return;
}This should fix the issue without breaking anything. |
|
@c3024 Thanks for your suggestion. I'll update accordingly asap |
|
@c3024 updated |
Reviewer Checklist
Screenshots/VideosiOS: mWeb SafarisplitiOSmWeb.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/grgia in version: 9.1.82-1 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.82-7 🚀
|







Explanation of Change
Fixed Issues
$#62235
PROPOSAL:#62235 (comment)
Tests
Precondition:
Offline tests
QA Steps
Precondition:
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
android.mov
Android: mWeb Chrome
amweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios_web.mov
MacOS: Chrome / Safari
chorme.mp4
MacOS: Desktop
desktop.mov