Fix bank account page doesnt load when coming from desktop#56131
Conversation
|
@eVoloshchak 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] |
| } | ||
|
|
||
| setReimbursementAccountLoading(true); | ||
| if (policyIDParam) { |
There was a problem hiding this comment.
Can we just return early here if there is no policyIDParam?
We don't need to call clearReimbursementAccountDraft and fetchData won't be called if there is no policyID. Or do we still need isStepToOpenEmpty check in this case?
There was a problem hiding this comment.
I don't follow why we don't need to call clearReimbursementAccountDraft. isStepToOpenEmpty is not related to the policyID param, so I would leave it as it is. We can update the code to this if needed:
...
const isStepToOpenEmpty = getStepToOpenFromRouteParams(route) === '';
if (isStepToOpenEmpty) {
setBankAccountSubStep(null);
setPlaidEvent(null);
}
if (!policyIDParam) {
return;
}
setReimbursementAccountLoading(true);
fetchData();
|
@bernhardoj, looks like GH check is failing, could you please merge with main? |
Reviewer Checklist
Screenshots/VideosMacOS: DesktopScreen.Recording.2025-02-17.at.20.16.09.mov |
…-coming-from-desktop
|
@tylerkaraszewski ready for your review. |
|
✋ 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/tylerkaraszewski in version: 9.1.7-1 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.7-2 🚀
|
Explanation of Change
Fixed Issues
$ #55241
PROPOSAL: #55241 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
NOTE: if it's still loading infinitely, try to Clear cache and restart first
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
web+desktop.mp4