Conversation
Question: is it possible to do `!authState?.isAuthenticated` instead of `!authState && !authState.isAuthenticated`?
|
It looks like this file needs to be fixed too. |
|
Thanks for submitting this PR. Code samples-js-react/okta-hosted-login/src/Navbar.jsx Lines 38 to 40 in 6702f99 Same for this file |
|
@denysoblohin-okta How should I change this line? If I remove the conditionals, will a login button still be rendered? {!authState.isPending && !authState.isAuthenticated && <Menu.Item onClick={login}>Login</Menu.Item>} |
|
@mraible where did you see the issues with the code snippet above? this sample repo or other apps? |
|
@shuowu It worked for OktaDev Schematics, which generates an app with the latest version of Create React App. oktadev/schematics@2c90198 |
Question: is it possible to do
!authState?.isAuthenticatedinstead of!authState && !authState.isAuthenticated?