Simplify isUserMenuAvailable check

This commit is contained in:
Bill Thornton 2023-10-19 23:53:31 -04:00
parent 60d29cb4f8
commit 05b0e3bfb5

View file

@ -43,10 +43,7 @@ const AppToolbar: FC<AppToolbarProps> = ({
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 (
<Toolbar