Remove Onyx.connect() for the key: ONYXKEYS.BANK_ACCOUNT_LIST in src/libs/actions/ReimbursementAccount/resetUSDBankAccount.ts#67520
Conversation
|
@shubham1206agra 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
Screenshots/VideosScreen.Recording.2025-08-21.at.6.11.24.PM.mov |
|
@shubham1206agra ready for your review |
| key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`, | ||
| callback: (policy) => { | ||
| Onyx.disconnect(connection); | ||
| resolve(); |
There was a problem hiding this comment.
Is it OK that this happens before the assertion? I am not 100% on this, but I think the resolve should be placed after the assertion or else the assertion might not run.
There was a problem hiding this comment.
Bump on this question (also, you have a conflict that needs fixed)
There was a problem hiding this comment.
Makes sense, I'll update
|
Will update package.json in single PR later |
|
✋ 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/tgolen in version: 9.2.9-0 🚀
|
|
🚀 Deployed to staging by https://github.com/tgolen in version: 9.2.11-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.2.12-4 🚀
|
Explanation of Change
Fixed Issues
$ #67561
PROPOSAL:
Tests
Offline tests
QA Steps
Disconnect bank accountVerify that you are shown a warning modal, and on confirmation the bank account is successfully removed
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.Screen.Recording.2025-08-20.at.4.44.15.PM.mov