Fix unauthorized conditon for onboarding modal#45235
Conversation
Kicu
left a comment
There was a problem hiding this comment.
The usage of specifically isAuthenticated seems legit to me.
I don't have such deep knowledge of navigation to know if getStateForAction is the best place to use it, but hopefully it is 😅
👍 from me but asked @WojtekBoman to take a look as well
|
@allgandalf 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] |
WojtekBoman
left a comment
There was a problem hiding this comment.
LGTM! Left one small comment
|
@allgandalf there's something wrong with some public chats anyway, but it looks a bit different. For two of them, I'm getting those errors instead of the action error.
For |
|
The original PR got reverted |

Details
Some parts of the navigation required an additional condition to verify if the user is authenticated. The red dot is a back-end issue, we're just displaying the error, so it shouldn't be handled on the front-end side.
Fixed Issues
$ #45157
PROPOSAL:
Tests
Offline tests
As above
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Screen.Recording.2024-07-11.at.10.32.19.mov
MacOS: Desktop