From 05b0e3bfb5254ae1aac74548b0323833065643b1 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 19 Oct 2023 23:53:31 -0400 Subject: [PATCH] Simplify isUserMenuAvailable check --- src/components/toolbar/AppToolbar.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/toolbar/AppToolbar.tsx b/src/components/toolbar/AppToolbar.tsx index 0cc55b339..d63d007cf 100644 --- a/src/components/toolbar/AppToolbar.tsx +++ b/src/components/toolbar/AppToolbar.tsx @@ -43,10 +43,7 @@ const AppToolbar: FC = ({ const isBackButtonAvailable = appRouter.canGoBack(); // Handles a specific case to hide the user menu on the select server page while authenticated - let isUserMenuAvailable = true; - if (currentLocation.pathname == '/selectserver.html') { - isUserMenuAvailable = false; - } + const isUserMenuAvailable = currentLocation.pathname !== '/selectserver.html'; return (