-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 opening money request page after sign ing #23937
Fix crash on opening money request page after sign ing #23937
Conversation
@allroundexperts 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] |
Currently, when you open the money request after signing in and press Next, the amount page will be shown again. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-02.at.12.29.51.PM.movMobile Web - ChromeScreen.Recording.2023-08-02.at.12.55.09.PM.movMobile Web - SafariScreen.Recording.2023-08-02.at.12.53.08.PM.movDesktopScreen.Recording.2023-08-02.at.12.33.02.PM.moviOSScreen.Recording.2023-08-02.at.1.03.41.PM.movAndroidScreen.Recording.2023-08-02.at.1.06.04.PM.mov |
Hi @bernhardoj! |
@bernhardoj Can we get this PR out ASAP? Currently listed as a deploy blocker and I'll cherry pick to staging once this is merged. |
@allroundexperts if we want to add || CONST.CURRENCY.USD, we also need to do that here App/src/pages/iou/steps/MoneyRequestAmountPage.js Lines 286 to 288 in cb8aac1
The Using either Also, if we keep the onyx initial value, then all of these default values will never be used App/src/pages/iou/steps/MoneyRequestAmountPage.js Lines 67 to 72 in cb8aac1
@Li357 I'm not sure why #23951 happens. Every time we click Split Bill or Request Money, we will set the currency here Lines 64 to 72 in cb8aac1
My guess is the Onyx merge is not completed yet (same root cause with #23937 (comment)), but I don't know why it happens on staging only. Maybe a recent Onyx update? (I see we have some issues that are caused by the recent Onyx update https://www.github.com/Expensify/App/issues/23962 https://www.github.com/Expensify/App/issues/23973) |
FYI this Onyx PR was recently merged - https://github.com/Expensify/App/pull/23749/files Just noting b/c there are some suspicions that a recent onyx change could have caused some issues |
@bernhardoj Can you please merge main? |
Also, do you know if there are any further steps to test this on native? I'm getting the following warning when opening the deep link without being logged in. Screen.Recording.2023-08-02.at.12.49.49.AM.mov |
merged with main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
✋ 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/madmax330 in version: 1.3.50-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.50-3 🚀
|
🚀 Deployed to staging by https://github.com/madmax330 in version: 1.3.51-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|
Details
Opening/deep linking to money request page after sign in or for the first time crash the app.
Fixed Issues
$ #23420
PROPOSAL: #23420 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Use deep link for Android/iOS
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-07-31.at.23.47.08.mov
Mobile Web - Chrome
android.mweb.mov
Mobile Web - Safari
ios-mweb.mov
Desktop
deskto.mov
iOS
ios.mov
Android
android.mov