From 6702f999e7f5372db9b1c4c6e108b84d96e03499 Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Mon, 28 Jun 2021 09:54:16 -0600 Subject: [PATCH] Remove `authState.isPending` Question: is it possible to do `!authState?.isAuthenticated` instead of `!authState && !authState.isAuthenticated`? --- okta-hosted-login/src/Navbar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/okta-hosted-login/src/Navbar.jsx b/okta-hosted-login/src/Navbar.jsx index 47b0cc6c..e388c3ae 100644 --- a/okta-hosted-login/src/Navbar.jsx +++ b/okta-hosted-login/src/Navbar.jsx @@ -62,7 +62,7 @@ const Navbar = ({ setCorsErrorModalOpen }) => { {authState.isAuthenticated && ( Logout )} - {!authState.isPending && !authState.isAuthenticated && ( + {!authState && !authState.isAuthenticated && ( Login )}