-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash on Connect bank account page #51981
Fix crash on Connect bank account page #51981
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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