[CP Stag] Fix forced log out in enable wallet flow#52489
Conversation
|
@ZhenjaHorbach 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/VideosAndroid: Native2024-11-13.19.48.11.mov2024-11-13.19.43.25.movAndroid: mWeb Chromeandroid-web.moviOS: Nativeios.moviOS: mWeb Safariios-web-2.movios-web-1.movMacOS: Chrome / Safariweb-2.movweb-1.movMacOS: Desktopdesktop-2.movdesktop-1.mov |
|
|
||
| const handleSubmitForm = useCallback( | ||
| (validateCode: string) => { | ||
| User.validateLogin(accountID ?? 0, validateCode); |
There was a problem hiding this comment.
This is a minor comment
But we don't use validateLogin anywhere else
So in theory we could remove validateLogin
There was a problem hiding this comment.
But we don't use validateLogin anywhere else
So in theory we could remove validateLogin
I'm planning on reintroducing it later so we can just leave it for now.
That in the background we navigate to the wallet screen when we press Pay with Expensify and Enter magic code
But I think we can fix all this in a separate PR
We'll address that in this issue.
There was a problem hiding this comment.
In this case no more questions
Thanks !
I'll finish the review soon
|
LGTM ! |
|
@marcochavezf 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] |
[CP Stag] Fix forced log out in enable wallet flow (cherry picked from commit 9b86b7d) (CP triggered by francoisl)
|
✋ 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/francoisl in version: 9.0.61-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.61-3 🚀
|

Explanation of Change
Uses
ValidateSecondaryLoginto fix issues with the app getting logged out in the enable wallet flowFixed Issues
$ #52453
Tests
Enable wallet flow
Pay someone flow
Offline tests
None
QA Steps
Same as Tests
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
screen-20241113-124445.mp4
screen-20241113-124640.mp4
Android: mWeb Chrome
iOS: Native
RPReplay_Final1731519050.MP4
iOS: mWeb Safari
RPReplay_Final1731518166.MP4
MacOS: Chrome / Safari
Screen.Recording.2024-11-13.at.12.03.22.PM.mov
Screen.Recording.2024-11-13.at.12.04.47.PM.mov
MacOS: Desktop
Screen.Recording.2024-11-13.at.12.09.06.PM.mov