Repository navigation
Conversation
`getShouldShowContinueSetupButtonInitialValue()` was being called before the declaration
|
@DylanDylann 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] |
`Ref values (the `current` property) may not be accessed during render. `
Co-authored-by: DylanDylann <141406735+DylanDylann@users.noreply.github.com>
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-05.at.13.29.10.movAndroid: mWeb ChromeScreen.Recording.2024-11-05.at.13.26.43.moviOS: NativeScreen.Recording.2024-11-05.at.13.26.27.moviOS: mWeb SafariScreen.Recording.2024-11-05.at.13.25.58.movMacOS: Chrome / SafariScreen.Recording.2024-11-05.at.13.25.04.movMacOS: DesktopScreen.Recording.2024-11-05.at.13.25.20.mov |
…-bank-account-page Fix crash on Connect bank account page (cherry picked from commit d01138a) (CP triggered by Julesssss)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.0.57-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.0.57-10 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.57-10 🚀
|
Explanation of Change
Fixes an issue where the
getShouldShowContinueSetupButtonInitialValue()function was being called before it was declared. It was working correctly until recent changes in #51718 caused the compiler to generate an invalid code.In the screenshots below, you can see that the
getBankAccountFields()andhasInProgressVBBA()functions are declared within an if statement, which means they might sometimes beundefined.Before this changes
After this changes
Fixed Issues
$ #51961
PROPOSAL: #51961 (comment)
Tests
Offline tests
N/A
QA Steps
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
51981.android.native.webm
Android: mWeb Chrome
51981.android.mweb.webm
iOS: Native
51981.ios.native.mp4
iOS: mWeb Safari
51981.ios.mweb.mp4
MacOS: Chrome / Safari
51981.macos.chrome.webm
MacOS: Desktop
51981.macos.desktop.mov